89% cc-clean-head-tags

Code Review | CC-Clean-Head-Tags

WordPress plugin CC-Clean-Head-Tags scored89%from 54 tests.

About plugin

  • Plugin page: cc-clean-head-tags
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Mar 16, 2022
  • Number of updates: 6
  • Update frequency: every 312.8 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,754 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.00MB] [CPU: ▼2.97ms] Passed 4 tests

An overview of server-side resources used by CC-Clean-Head-Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.09 ▲0.65
Dashboard /wp-admin3.31 ▲0.0044.92 ▼3.35
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▼1.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.45 ▼7.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.68 ▲0.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

CC-Clean-Head-Tags: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲5613.26 ▼1.324.87 ▲3.0937.51 ▼0.96
Dashboard /wp-admin2,209 ▲214.80 ▼1.1098.98 ▼5.3438.71 ▼3.10
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0340.77 ▲5.7735.34 ▲2.01
Add New Post /wp-admin/post-new.php1,533 ▲1323.40 ▲0.27674.73 ▲75.1558.63 ▲11.40
Media Library /wp-admin/upload.php1,391 ▼04.31 ▲0.0795.65 ▲0.5341.03 ▲0.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (27 tag instead of maximum 10)
You can take inspiration from this readme.txt

cc-clean-head-tags/plugin.php 92% from 13 tests

The primary PHP file in "CC-Clean-Head-Tags" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-clean-head-tags.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin310 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP69990288
PO File1316122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.50
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods29
▷ Static methods827.59%
▷ Public methods1965.52%
▷ Protected methods1034.48%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin