84% commenters-can-add-tags

Code Review | Commenters can add tags

WordPress plugin Commenters can add tags scored84%from 54 tests.

About plugin

  • Plugin page: commenters-can-ad...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: Aug 26, 2016
  • Number of updates: 5
  • Update frequency: every 60.2 days
  • Top authors: Raulanton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,144 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
Installer ran successfully

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

Server-side resources used by Commenters can add tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.45 ▼2.49
Dashboard /wp-admin3.32 ▼0.0251.70 ▼10.27
Posts /wp-admin/edit.php3.38 ▲0.0250.78 ▼2.72
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.11 ▼12.77
Media Library /wp-admin/upload.php3.25 ▲0.0239.49 ▼0.20
Commenters can add tags /wp-admin/options-general.php?page=anton_commenterscanaddtags3.2134.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Commenters can add tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.53 ▼0.061.85 ▼0.0045.93 ▲3.27
Dashboard /wp-admin2,202 ▲255.65 ▲0.1397.05 ▲9.7242.68 ▼2.32
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0739.82 ▼1.4636.81 ▲0.86
Add New Post /wp-admin/post-new.php1,531 ▲323.21 ▲0.07628.94 ▼35.7856.51 ▼0.42
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.00106.02 ▼28.7746.52 ▼4.61
Commenters can add tags /wp-admin/options-general.php?page=anton_commenterscanaddtags8021.9628.4925.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • wp_antonat_prefix
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/commenters-can-add-tags/commenters-can-add-tags.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: tags, tag, etiquetas, commenter, comments...

commenters-can-add-tags/commenters-can-add-tags.php Passed 13 tests

The entry point to "Commenters can add tags" version 0.2 is a PHP file that has certain tags in its header comment area
80 characters long description:
Allow commenters to add tags (It will be considered so each word preceded by #).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1594984
PO File361860

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin