78% cubecolour-caboodle

Code Review | Cubecolour Caboodle

WordPress plugin Cubecolour Caboodle scored78%from 54 tests.

About plugin

  • Plugin page: cubecolour-caboodle
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 10, 2022
  • Latest release: Feb 14, 2023
  • Number of updates: 11
  • Update frequency: every 20.0 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /635 total downloads

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: ▲0.65MB] [CPU: ▲1.15ms] Passed 4 tests

Server-side resources used by Cubecolour Caboodle
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6949.40 ▲6.27
Dashboard /wp-admin3.98 ▲0.6855.37 ▲2.39
Posts /wp-admin/edit.php4.03 ▲0.6850.25 ▲1.45
Add New Post /wp-admin/post-new.php6.52 ▲0.6489.85 ▼5.51
Media Library /wp-admin/upload.php3.84 ▲0.6242.96 ▲8.33
Caboodle /wp-admin/options-general.php?page=caboodle3.8138.91

Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 395 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
cc_caboodle
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cubecolour Caboodle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.28 ▲0.071.88 ▼0.5243.43 ▼2.35
Dashboard /wp-admin2,199 ▲195.58 ▼0.0797.53 ▲11.1442.70 ▲3.27
Posts /wp-admin/edit.php2,101 ▼22.04 ▲0.0335.33 ▼6.8734.70 ▼1.53
Add New Post /wp-admin/post-new.php1,529 ▼217.44 ▼5.67696.11 ▲16.5251.55 ▼1.61
Media Library /wp-admin/upload.php1,401 ▲44.26 ▲0.02100.37 ▼7.8643.82 ▼4.08
Caboodle /wp-admin/options-general.php?page=caboodle8982.0723.8428.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cubecolour-caboodle/images/flags/index.php
    • > /wp-content/plugins/cubecolour-caboodle/images/extlink-icons/index.php
    • > /wp-content/plugins/cubecolour-caboodle/images/scrolltop/index.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cubecolour-caboodle/includes/anti-spambot.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cubecolour-caboodle/includes/anti-clickjack.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

cubecolour-caboodle/cubecolour-caboodle.php Passed 13 tests

This is the main PHP file of "Cubecolour Caboodle" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
An agglomeration of useful functions

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
No dangerous file extensions were detected5,410 lines of code in 361 files:
LanguageFilesBlank linesComment linesLines of code
PHP556379443,396
PO File2388425894
CSS9478447
JavaScript892136386
SVG28700287

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.67
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin