Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentbox::plugin_activation() should not be called statically
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.87ms] Passed 4 tests
An overview of server-side resources used by ContentBox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.53 ▼7.29 |
Dashboard /wp-admin | 3.40 ▲0.05 | 53.33 ▼9.42 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 54.84 ▲3.27 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.83 ▼14.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.07 ▼0.63 |
contentBox /wp-admin/options-general.php?page=wp-contentbox/settings | 3.30 | 40.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for ContentBox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.48 ▼0.27 | 1.98 ▼1.15 | 44.59 ▼1.80 |
Dashboard /wp-admin | 2,228 ▲25 | 4.80 ▼0.10 | 103.18 ▼17.03 | 38.68 ▼5.79 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.13 ▲0.13 | 37.00 ▼3.52 | 31.31 ▼7.29 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,712 | 26.24 ▲3.08 | 877.74 ▲175.71 | 75.08 ▲9.62 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▼0.08 | 98.42 ▼23.53 | 45.36 ▼7.09 |
contentBox /wp-admin/options-general.php?page=wp-contentbox/settings | 897 | 2.05 | 29.20 | 29.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentbox::plugin_deactivation() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/contentbox/contentbox.php:19
- > 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 96% from 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
8 plugin tags: post, text, contentbox, content, copyright...
contentbox/contentbox.php 92% from 13 tests
The main file in "ContentBox" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin559 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 142 | 123 | 559 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 29 | 63.04% |
▷ Public methods | 45 | 97.83% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin