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.01MB] [CPU: ▼4.14ms] Passed 4 tests
An overview of server-side resources used by Customizr Addons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.77 ▼3.72 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.41 ▼16.19 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.21 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.06 ▲1.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.59 ▲1.39 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Customizr Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.57 ▼0.80 | 1.71 ▼0.50 | 38.68 ▼11.48 |
Dashboard /wp-admin | 2,212 ▲21 | 5.88 ▼0.00 | 98.83 ▼15.37 | 39.59 ▼3.10 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▼0.08 | 36.32 ▼0.14 | 34.36 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.05 ▼0.07 | 646.12 ▼12.07 | 59.23 ▼1.70 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.09 | 94.03 ▼8.73 | 41.46 ▼5.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/customizr-addons/assets/front/js/sharrre.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/customizr-addons/customizr-addons.php:148
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizr-addons/inc/sharrre/sharrre-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizr-addons/inc/sharrre-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: customizr, customizr theme
customizr-addons/customizr-addons.php Passed 13 tests
Analyzing the main PHP file in "Customizr Addons" version 1.1.2
60 characters long description:
Lightweight addons plugin for the Customizr WordPress theme.
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 detected8,099 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 4,055 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 6 | 119 | 140 | 700 |
JavaScript | 3 | 51 | 54 | 565 |
PO File | 1 | 21 | 21 | 72 |
CSS | 2 | 1 | 12 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin