Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cleio-toolbox/resources/classes/CleioToolbox_Widgets.php+17
Function create_function() is deprecated
Server metrics [RAM: ▼1.29MB] [CPU: ▼48.35ms] Passed 4 tests
Server-side resources used by Cleio Toolbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.70 ▼0.77 | 9.34 ▼32.55 |
Dashboard /wp-admin | 2.72 ▼0.59 | 10.27 ▼40.05 |
Posts /wp-admin/edit.php | 2.72 ▼0.64 | 10.82 ▼33.17 |
Add New Post /wp-admin/post-new.php | 2.72 ▼3.17 | 9.97 ▼87.61 |
Media Library /wp-admin/upload.php | 2.72 ▼0.51 | 9.14 ▼22.97 |
Add new /wp-admin/post-new.php?post_type=photo | 2.72 | 9.15 |
Photos Posts /wp-admin/edit.php?post_type=photo | 2.72 | 12.04 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_cleiotoolbox_twitter |
widget_cleiotoolbox_instagram |
widget_cleiotoolbox_facebooklikebox |
widget_cleiotoolbox_social |
widget_recent-comments |
theysaidso_admin_options |
widget_cleiotoolbox_featuredphoto |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Cleio Toolbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.73 ▼0.37 | 2.18 ▲0.57 | 63.94 ▲15.51 |
Dashboard /wp-admin | 2,245 ▲57 | 4.86 ▼0.05 | 101.69 ▼15.82 | 39.76 ▼7.35 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.05 ▲0.04 | 39.70 ▲2.22 | 36.06 ▼1.34 |
Add New Post /wp-admin/post-new.php | 6,268 ▲4,754 | 26.21 ▲8.66 | 879.84 ▲249.53 | 62.74 ▲8.95 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.20 ▼0.01 | 95.72 ▼2.57 | 42.53 ▼1.06 |
Add new /wp-admin/post-new.php?post_type=photo | 2,502 | 7.64 | 183.92 | 67.13 |
Photos Posts /wp-admin/edit.php?post_type=photo | 1,126 | 1.94 | 31.42 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/cleio-toolbox/resources/classes/CleioToolbox_Widgets.php+17
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 15 options in the database
- widget_cleiotoolbox_featuredphoto
- widget_cleiotoolbox_instagram
- social-twitter-access-oauth-token
- social-twitter-access-oauth-token-secret
- widget_recent-posts
- widget_cleiotoolbox_social
- social-twitter-access-token
- theysaidso_admin_options
- widget_cleiotoolbox_twitter
- widget_cleiotoolbox_facebooklikebox
- ...
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)
Smoke test failed, please fix the following
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=photo
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/cleio-toolbox/resources/classes/CleioToolbox_Widgets.php+27
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=photo
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- > GET request to /wp-admin/post-new.php?post_type=photo
- > Notice in wp-content/plugins/cleio-toolbox/resources/classes/CleioToolbox_Contents.php+302
Undefined index: _inline_edit
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cleio-toolbox/resources/utils/exile_twitter_oauth.php
- > /wp-content/plugins/cleio-toolbox/resources/utils/exile_instagram_oauth.php
- > /wp-content/plugins/cleio-toolbox/resources/utils/twitter_redirect.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cleio-toolbox/cleio-resources/classes/framework/Cleio_Framework.php:108
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_FacebookLikebox.php:2
- > PHP Warning
require_once(twitteroauth/twitteroauth.php): failed to open stream: No such file or directory in wp-content/plugins/cleio-toolbox/resources/utils/twitteroauth/redirect.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_Twitter.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_FeaturedPhoto.php:2
- > PHP Fatal error
require_once(): Failed opening required 'twitteroauth/twitteroauth.php' (include_path='.:/usr/share/php') in wp-content/plugins/cleio-toolbox/resources/utils/twitteroauth/redirect.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_Bio.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_Social.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cleio-toolbox/resources/classes/widgets/CleioToolbox_Instagram.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== cleio-toolbox ===
)
cleio-toolbox/cleio-toolbox.php 92% from 13 tests
The main PHP script in "Cleio Toolbox" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 273 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin11,245 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 524 | 941 | 4,620 |
PHP | 21 | 650 | 1,433 | 2,711 |
CSS | 8 | 153 | 141 | 2,544 |
SVG | 20 | 0 | 19 | 1,002 |
PO File | 1 | 320 | 600 | 368 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 6 | 23.08% |
▷ Concrete classes | 20 | 76.92% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 10 | 6.17% |
▷ Public methods | 151 | 93.21% |
▷ Protected methods | 2 | 1.23% |
▷ Private methods | 9 | 5.56% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cleio-resources/css/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
cleio-resources/images/bg-earth.png | 70.28KB | 29.37KB | ▼ 58.21% |