Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-crobox/includes/class-wp-crobox.php+183
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.85ms] Passed 4 tests
Analyzing server-side resources used by Name: WP CroBox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.50 ▼36.06 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.14 ▼46.34 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.15 ▼43.36 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.05 ▼81.62 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.25 ▼25.32 |
WP CroBox /wp-admin/options-general.php?page=wp-crobox | 2.05 | 5.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
wp-crobox |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Name: WP CroBox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.73 ▲0.18 | 2.08 ▲0.22 | 44.18 ▼1.61 |
Dashboard /wp-admin | 2,224 ▲44 | 5.79 ▲0.09 | 90.69 ▲4.89 | 39.22 ▼8.05 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.31 ▲0.27 | 38.52 ▲1.72 | 33.56 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.25 ▲0.31 | 667.52 ▲27.82 | 36.02 ▼32.10 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.36 ▲0.16 | 92.39 ▼10.46 | 41.14 ▼3.80 |
WP CroBox /wp-admin/options-general.php?page=wp-crobox | 1,342 | 2.44 | 59.96 | 33.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-crobox/includes/class-wp-crobox.php+183
Undefined index: main_switch
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-crobox
- > Notice in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-display.php+38
Undefined index: main_switch
- > GET request to /wp-admin/options-general.php?page=wp-crobox
- > Notice in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-display.php+42
Undefined index: button_url
- > GET request to /wp-admin/options-general.php?page=wp-crobox
- > Notice in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-display.php+43
Undefined index: enable_footer
- > GET request to /wp-admin/options-general.php?page=wp-crobox
- > Notice in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-display.php+44
Undefined index: footer_text
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-crobox/public/partials/wp-crobox-public-css.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-contact.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-colors.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-crobox/admin/partials/wp-crobox-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-crobox/public/partials/wp-crobox-public-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Contributors: Contributors not specified
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Name: WP CroBox===
)
wp-crobox/wp-crobox.php Passed 13 tests
The principal PHP file in "Name: WP CroBox" v. 1.0.0 is loaded by WordPress automatically on each request
48 characters long description:
Smart and customizable pop-up box for WordPress.
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 detected546 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 211 | 549 | 375 |
CSS | 2 | 11 | 4 | 105 |
JavaScript | 2 | 15 | 3 | 66 |
PHP code Passed 2 tests
This is a short overview 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.07 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin