Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.79MB] [CPU: ▲6.88ms] Passed 4 tests
Server-side resources used by Content Manager Light
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.30 ▲1.84 | 55.63 ▲19.23 |
Dashboard /wp-admin | 5.15 ▲1.84 | 61.13 ▲7.32 |
Posts /wp-admin/edit.php | 5.21 ▲1.86 | 67.35 ▲13.68 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.69 | 94.79 ▼10.05 |
Media Library /wp-admin/upload.php | 5.04 ▲1.81 | 51.33 ▲16.55 |
otwfcr /wp-admin/admin.php?page=otwfcr | 5.02 | 53.03 |
Settings /wp-admin/admin.php?page=otw-lcm-settings | 5.03 | 47.38 |
License Manager /wp-admin/admin.php?page=otw-lcm-lm | 5.12 | 192.10 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 161 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Manager Light
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,200 ▲439 | 18.60 ▲4.23 | 8.06 ▲6.26 | 36.86 ▼1.13 |
Dashboard /wp-admin | 2,480 ▲300 | 8.11 ▲2.46 | 161.65 ▲68.66 | 98.32 ▲51.38 |
Posts /wp-admin/edit.php | 2,559 ▲456 | 5.90 ▲3.89 | 119.00 ▲76.15 | 42.59 ▲4.47 |
Add New Post /wp-admin/post-new.php | 6,598 ▲5,070 | 26.24 ▲3.24 | 961.59 ▲322.77 | 47.52 ▼0.66 |
Media Library /wp-admin/upload.php | 1,860 ▲466 | 7.72 ▲3.54 | 174.03 ▲70.32 | 89.67 ▲47.66 |
otwfcr /wp-admin/admin.php?page=otwfcr | 1,250 | 5.58 | 107.28 | 26.77 |
Settings /wp-admin/admin.php?page=otw-lcm-settings | 1,376 | 5.59 | 98.29 | 42.48 |
License Manager /wp-admin/admin.php?page=otw-lcm-lm | 1,388 | 5.45 | 105.13 | 30.37 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=otw-lcm-lm
- > Deprecated in wp-content/plugins/content-manager-light/include/otw_components/otw_functions/otw_functions.php+272
Function get_magic_quotes_gpc() is deprecated
SRP 0% 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 items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- > /wp-content/plugins/content-manager-light/include/otw_components/otw_factory/views/action_message.php
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-manager-light/include/otw_labels/otw_lcm_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_html_editor.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_ordered_list.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/content-manager-light/otw_content_manager.php:11
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/content-manager-light/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-manager-light/include/otw_labels/otw_lcm_grid_manager_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_info_box.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/content-manager-light/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_button.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (OTW Grid Manager Light), #2 (Content items settings interface), #3 (Buttons), #4 (Info box), #5 (Drop Caps), #6 (Quotes), #7 (Tab Layout), #8 (Content Toggle), #9 (Dividers)
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
content-manager-light/otw_content_manager.php 92% from 13 tests
The principal PHP file in "Content Manager Light" v. 3.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("content-manager-light.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected21,983 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 748 | 314 | 9,898 |
PHP | 38 | 2,114 | 1,203 | 6,627 |
JavaScript | 17 | 790 | 148 | 2,749 |
SVG | 4 | 0 | 0 | 2,709 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 47.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 22 | 9.57% |
▷ Public methods | 191 | 83.04% |
▷ Protected methods | 27 | 11.74% |
▷ Private methods | 12 | 5.22% |
Functions | 49 | |
▷ Named functions | 49 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
52 compressed PNG files occupy 0.63MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_grid_manager_light/img/gm-add-big.png | 0.47KB | 0.71KB | 0.00% |
include/otw_components/otw_grid_manager_light/img/gm-clone.png | 0.21KB | 0.24KB | 0.00% |
include/otw_components/otw_form/img/select.png | 0.20KB | 0.27KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
include/otw_components/otw_form/img/colorpicker/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |