Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼296.38ms] 75% from 4 tests
This is a short check of server-side resources used by Admin Customizer
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,806.68ms on /wp-admin/options-general.php?page=admin-customizer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 55.01 ▲3.20 |
Dashboard /wp-admin | 3.54 ▲0.13 | 35.04 ▲0.36 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 37.37 ▼2.82 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.10 | 91.90 ▼1,181.20 |
Media Library /wp-admin/upload.php | 3.48 ▲0.19 | 24.00 ▼1.84 |
Admin Customizer /wp-admin/options-general.php?page=admin-customizer | 4.65 | 1,806.68 |
Server storage [IO: ▲0.28MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,332 ▼422 | 15.64 ▲0.06 | 5.99 ▼1.43 | 1.85 ▼0.79 |
Dashboard /wp-admin | 2,482 ▼376 | 6.06 ▼0.16 | 113.35 ▼17.24 | 112.92 ▼44.08 |
Posts /wp-admin/edit.php | 2,624 ▼67 | 3.24 ▼0.01 | 60.96 ▼4.54 | 125.81 ▼17.27 |
Add New Post /wp-admin/post-new.php | 1,584 ▼77 | 19.35 ▲1.29 | 417.45 ▲14.47 | 160.78 ▲4.86 |
Media Library /wp-admin/upload.php | 1,630 ▼65 | 5.56 ▲0.05 | 139.87 ▲0.95 | 173.50 ▼15.38 |
Admin Customizer /wp-admin/options-general.php?page=admin-customizer | 2,924 | 9.77 | 194.67 | 131.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/wysiwyg.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/custom_taxonomy_checkbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/text.php:4
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/switch.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/color.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/nav_menu_select.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/custom_taxonomy_select.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/on_off.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: dashboard, theme, backend, customization, admin...
admin-customizer/admin-customizer.php Passed 13 tests
The main file in "Admin Customizer" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
This plugin allows you to customize the admin interface of your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,393 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 246 | 353 | 1,851 |
PHP | 36 | 384 | 291 | 1,724 |
CSS | 6 | 161 | 25 | 818 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 1 | 1.03% |
▷ Public methods | 94 | 96.91% |
▷ Protected methods | 1 | 1.03% |
▷ Private methods | 2 | 2.06% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
npf-framework/assets/vendor/tzcheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
npf-framework/assets/images/checks.png | 0.66KB | 0.65KB | ▼ 0.60% |
npf-framework/assets/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
npf-framework/assets/vendor/select2/select2.png | 0.60KB | 0.99KB | 0.00% |