84% coldbox-addon

Code Review | Coldbox Addons

WordPress plugin Coldbox Addons scored84%from 54 tests.

About plugin

  • Plugin page: coldbox-addon
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Jun 25, 2023
  • Number of updates: 33
  • Update frequency: every 65.1 days
  • Top authors: Mirucon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /20,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.09MB] [CPU: ▼14.61ms] Passed 4 tests

This is a short check of server-side resources used by Coldbox Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2534.85 ▼8.43
Dashboard /wp-admin3.53 ▲0.2245.66 ▼2.72
Posts /wp-admin/edit.php3.64 ▲0.2947.91 ▲1.52
Add New Post /wp-admin/post-new.php4.82 ▼1.0744.32 ▼48.79
Media Library /wp-admin/upload.php3.45 ▲0.2244.82 ▲15.65

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

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

Browser metrics Passed 4 tests

Coldbox Addons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.28 ▼1.091.61 ▼0.2340.61 ▼3.22
Dashboard /wp-admin2,206 ▲215.86 ▲0.0597.69 ▼18.9040.85 ▼5.49
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0139.02 ▲3.8436.96 ▲2.10
Add New Post /wp-admin/post-new.php45 ▼1,4940.44 ▼17.810.08 ▼633.9410.07 ▼41.24
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.0297.56 ▼1.5458.79 ▲16.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coldbox-addon/coldbox-addon.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/ogp.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/general.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coldbox-addon/inc/amp.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/amp-ads.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/share-buttons.php:213
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/customizer.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coldbox-addon/inc/meta.php:27

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: coldbox, coldbox-theme

coldbox-addon/coldbox-addon.php 92% from 13 tests

"Coldbox Addons" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,221 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP91855261,221

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin