84% wolfe-candy-tag-cloud

Code Review | Wolfe Candy Tag Cloud

WordPress plugin Wolfe Candy Tag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: wolfe-candy-tag-c...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Sep 16, 2022
  • Number of updates: 17
  • Update frequency: every 1.2 days
  • Top authors: jrackwolfe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /238 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.61ms] Passed 4 tests

A check of server-side resources used by Wolfe Candy Tag Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.97 ▼8.61
Dashboard /wp-admin3.31 ▲0.0146.34 ▼0.86
Posts /wp-admin/edit.php3.36 ▲0.0147.79 ▲3.67
Add New Post /wp-admin/post-new.php5.89 ▲0.01107.68 ▲14.55
Media Library /wp-admin/upload.php3.23 ▲0.0033.33 ▼0.62

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Wolfe Candy Tag Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.43 ▼0.302.08 ▲0.2338.67 ▼6.08
Dashboard /wp-admin2,206 ▲144.85 ▼0.10107.33 ▼8.4340.43 ▼3.00
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0140.09 ▲5.4136.27 ▲1.88
Add New Post /wp-admin/post-new.php1,533 ▲423.10 ▲4.63614.83 ▲10.0758.65 ▲10.06
Media Library /wp-admin/upload.php1,385 ▼04.28 ▲0.0997.13 ▼0.0043.69 ▲1.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wolfe-candy-tag-cloud/plugin-startup.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wolfe-candy-tag-cloud/plugin-startup.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: tagcloud, tag cloud generator, tag, category cloud, cloud

wolfe-candy-tag-cloud/wolfe-candy-tag-cloud.php 92% from 13 tests

"Wolfe Candy Tag Cloud" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 221 characters long)

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
Everything looks great! No dangerous files found in this plugin496 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3187189496

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
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
PNG images were not found in this plugin