Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼297.36ms] Passed 4 tests
Analyzing 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.79 ▲0.67 | 61.00 ▲10.52 |
Dashboard /wp-admin | 3.63 ▲0.22 | 35.51 ▲2.56 |
Posts /wp-admin/edit.php | 3.85 ▲0.21 | 37.40 ▼6.39 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 91.70 ▼1,192.79 |
Media Library /wp-admin/upload.php | 3.50 ▲0.21 | 31.87 ▲7.17 |
Admin Trim Interface /wp-admin/themes.php?page=admin-trim-interface/admin-trim-interface.php | 3.64 | 25.35 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admin Trim Interface
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.27 ▲0.60 | 6.55 ▲0.18 | 3.03 ▲0.54 |
Dashboard /wp-admin | 2,893 ▲32 | 6.12 ▼0.08 | 164.74 ▲28.72 | 180.24 ▼45.74 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.24 ▲0.01 | 62.45 ▲0.28 | 197.29 ▲56.59 |
Add New Post /wp-admin/post-new.php | 1,693 ▲32 | 20.61 ▲3.47 | 436.44 ▼7.82 | 174.38 ▼1.42 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.54 ▼0.01 | 157.35 ▲8.44 | 204.79 ▼62.01 |
Admin Trim Interface /wp-admin/themes.php?page=admin-trim-interface/admin-trim-interface.php | 1,176 | 2.62 | 61.62 | 163.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 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 trigger server-side errors or Error 500 responses:
- > 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)
No browser errors were detected
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, admin, coffee2code, minimal, interface
admin-trim-interface/admin-trim-interface.php Passed 13 tests
The primary PHP file in "Admin Trim Interface" version 3.5.1 is used by WordPress to initiate all plugin functionality
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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,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 brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued 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
PNG files should be compressed to save space and minimize bandwidth usage
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 |
screenshot-1.png | 209.53KB | 71.49KB | ▼ 65.88% |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |