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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼0.04ms] Passed 4 tests
This is a short check of server-side resources used by Admin Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 38.52 ▼4.18 |
Dashboard /wp-admin | 3.81 ▲0.51 | 46.76 ▼4.33 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 48.77 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 98.64 ▲7.49 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 39.38 ▲6.80 |
Admin Customizer /wp-admin/options-general.php?page=admin-customizer | 3.79 | 39.96 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Customizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,521 ▼225 | 14.25 ▼0.39 | 1.76 ▼0.33 | 42.72 ▼4.54 |
Dashboard /wp-admin | 1,969 ▼205 | 5.60 ▼0.30 | 89.12 ▼25.20 | 36.78 ▼9.50 |
Posts /wp-admin/edit.php | 2,017 ▼72 | 2.03 ▲0.02 | 39.61 ▲2.32 | 30.45 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,483 ▼59 | 23.23 ▲4.89 | 644.71 ▼7.81 | 64.57 ▲13.89 |
Media Library /wp-admin/upload.php | 1,313 ▼75 | 4.21 ▲0.01 | 98.83 ▲2.15 | 39.80 ▼4.62 |
Admin Customizer /wp-admin/options-general.php?page=admin-customizer | 2,223 | 8.24 | 187.60 | 40.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 125× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/textarea.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Warning
include_once(): Failed opening 'ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/custom_taxonomy_checkbox.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/email.php:3
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/textarea.php:3
- > PHP Warning
include_once(ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/time.php): failed to open stream: No such file or directory in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/upload.php:3
- > PHP Warning
Use of undefined constant ADMIN_CUSTOMIZER_PLUGIN_URI - assumed 'ADMIN_CUSTOMIZER_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Warning
include_once(): Failed opening 'ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/sidebar_select.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Warning
include_once(): Failed opening 'ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/custom_css.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Warning
include_once(): Failed opening 'ADMIN_CUSTOMIZER_PLUGIN_URI/npf-framework/fields/_base.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-customizer/npf-framework/init.php on line 41
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
admin-customizer/admin-customizer.php Passed 13 tests
The primary PHP file in "Admin Customizer" version 2.2.7 is used by WordPress to initiate all plugin functionality
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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,275 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 584 | 895 | 2,523 |
JavaScript | 9 | 246 | 353 | 1,851 |
CSS | 6 | 161 | 25 | 818 |
JSON | 2 | 0 | 0 | 83 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 20 | 12.90% |
▷ Public methods | 139 | 89.68% |
▷ Protected methods | 9 | 5.81% |
▷ Private methods | 7 | 4.52% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 7 | |
▷ Global constants | 7 | 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/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% |
npf-framework/assets/vendor/tzcheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |