Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.65ms] Passed 4 tests
A check of server-side resources used by Admin Trim Interface
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 44.39 ▲8.94 |
Dashboard /wp-admin | 3.52 ▲0.21 | 58.94 ▲11.08 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 42.55 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 82.35 ▼12.23 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.72 ▲2.53 |
Admin Trim Interface /wp-admin/themes.php?page=admin-trim-interface/admin-trim-interface.php | 3.43 | 31.14 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Trim Interface
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.15 | 4.53 ▲2.80 | 42.13 ▲3.09 |
Dashboard /wp-admin | 2,207 ▲18 | 5.82 ▲0.86 | 99.77 ▼18.33 | 38.70 ▼0.55 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.06 | 34.14 ▼2.10 | 36.02 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.33 ▲4.83 | 670.12 ▲63.53 | 55.65 ▼6.27 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.00 | 95.88 ▼4.59 | 41.52 ▼1.24 |
Admin Trim Interface /wp-admin/themes.php?page=admin-trim-interface/admin-trim-interface.php | 932 | 1.72 | 32.38 | 38.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/admin-trim-interface/tests/bootstrap.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/admin-trim-interface/tests/bootstrap.php on line 17
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-trim-interface/tests/bootstrap.php on line 17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: customize, interface, coffee2code, minimal, admin
admin-trim-interface/admin-trim-interface.php Passed 13 tests
The principal PHP file in "Admin Trim Interface" v. 3.5.1 is loaded by WordPress automatically on each request
99 characters long description:
Customize the WordPress admin pages by selectively removing interface elements on a per-user basis.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,541 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 283 | 585 | 1,202 |
Markdown | 3 | 48 | 0 | 304 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 99 | |
▷ Static methods | 7 | 7.07% |
▷ Public methods | 85 | 85.86% |
▷ Protected methods | 14 | 14.14% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |
screenshot-1.png | 209.53KB | 71.49KB | ▼ 65.88% |