10% cleio-toolbox

Code Review | Cleio Toolbox

WordPress plugin Cleio Toolbox scored10%from 54 tests.

About plugin

  • Plugin page: cleio-toolbox
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Oct 13, 2014
  • Number of updates: 11
  • Update frequency: every 2.4 days
  • Top authors: exiledesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,154 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.70 ▼0.779.34 ▼32.55
Dashboard /wp-admin2.72 ▼0.5910.27 ▼40.05
Posts /wp-admin/edit.php2.72 ▼0.6410.82 ▼33.17
Add New Post /wp-admin/post-new.php2.72 ▼3.179.97 ▼87.61
Media Library /wp-admin/upload.php2.72 ▼0.519.14 ▼22.97
Add new /wp-admin/post-new.php?post_type=photo2.729.15
Photos Posts /wp-admin/edit.php?post_type=photo2.7212.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13413.73 ▼0.372.18 ▲0.5763.94 ▲15.51
Dashboard /wp-admin2,245 ▲574.86 ▼0.05101.69 ▼15.8239.76 ▼7.35
Posts /wp-admin/edit.php2,128 ▲392.05 ▲0.0439.70 ▲2.2236.06 ▼1.34
Add New Post /wp-admin/post-new.php6,268 ▲4,75426.21 ▲8.66879.84 ▲249.5362.74 ▲8.95
Media Library /wp-admin/upload.php1,430 ▲424.20 ▼0.0195.72 ▼2.5742.53 ▼1.06
Add new /wp-admin/post-new.php?post_type=photo2,5027.64183.9267.13
Photos Posts /wp-admin/edit.php?post_type=photo1,1261.9431.4230.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

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 === )
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript155249414,620
PHP216501,4332,711
CSS81531412,544
SVG200191,002
PO File1320600368

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 code0.30
Average class complexity20.12
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes623.08%
▷ Concrete classes2076.92%
▷ Final classes00.00%
Methods162
▷ Static methods106.17%
▷ Public methods15193.21%
▷ Protected methods21.23%
▷ Private methods95.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
cleio-resources/css/chosen-sprite.png0.63KB0.88KB0.00%
cleio-resources/images/bg-earth.png70.28KB29.37KB▼ 58.21%