Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/context-manager/reactions/menu/active-parent.php+3
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼59.86ms] Passed 4 tests
This is a short check of server-side resources used by Context Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 5.21 ▼41.04 |
Dashboard /wp-admin | 2.12 ▼1.19 | 6.03 ▼43.58 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.03 ▼42.69 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 7.81 ▼112.12 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 7.35 ▼30.89 |
Context Rules /wp-admin/edit.php?post_type=context_rule | 2.12 | 5.77 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Context Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.74 ▲0.39 | 1.63 ▼0.06 | 43.43 ▼3.44 |
Dashboard /wp-admin | 2,205 ▲31 | 5.59 ▼0.02 | 90.60 ▼3.42 | 41.67 ▼1.11 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.01 | 40.07 ▲0.69 | 34.85 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.12 ▼0.65 | 661.05 ▲5.95 | 52.54 ▲2.16 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▲0.02 | 97.50 ▼6.07 | 45.97 ▼1.19 |
Context Rules /wp-admin/edit.php?post_type=context_rule | 1,071 | 1.96 | 31.08 | 32.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/context-manager/reactions/menu/active-parent.php+3
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=context_rule
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/context-manager/reactions/menu/child-page.php+3
Function create_function() is deprecated
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
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/context-manager/libs/scb-framework/scb/load.php:31
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/context-manager/libs/scb-framework/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'Context_Manager_Reaction' not found in wp-content/plugins/context-manager/reactions/body_class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/context-manager/reactions/menu/active-parent.php:3
- > PHP Fatal error
Uncaught Error: Class 'Context_Manager_Reaction' not found in wp-content/plugins/context-manager/reactions/menu.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/context-manager/libs/scb-framework/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'Context_Manager_Reaction' not found in wp-content/plugins/context-manager/reactions/assets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/context-manager/libs/scb-framework/scb/load.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/context-manager/reactions/menu/active-parent.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/context-manager/libs/scb-framework/scb/Widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: widgets, context, widget logic, wp_enqueue_styles, active menu...
context-manager/plugin.php 92% from 13 tests
The entry point to "Context Manager" version 1.2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("context-manager.php" instead of "plugin.php")
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
No dangerous file extensions were detected3,195 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 908 | 489 | 2,718 |
CSS | 2 | 10 | 13 | 454 |
JavaScript | 3 | 1 | 10 | 23 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 7 | 22.58% |
▷ Concrete classes | 24 | 77.42% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 80 | 35.87% |
▷ Public methods | 184 | 82.51% |
▷ Protected methods | 9 | 4.04% |
▷ Private methods | 30 | 13.45% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/pb-framework/assets/vendor/chosen/chosen-sprite.png | 1.52KB | 0.70KB | ▼ 54.36% |