84% comment-but-not-seo

Code Review | Comment But Not SEO

WordPress plugin Comment But Not SEO scored84%from 54 tests.

About plugin

  • Plugin page: comment-but-not-seo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 8
  • Update frequency: every 3.1 days
  • Top authors: iltekin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.90ms] Passed 4 tests

A check of server-side resources used by Comment But Not SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.25 ▲0.18
Dashboard /wp-admin3.35 ▲0.0555.12 ▼2.91
Posts /wp-admin/edit.php3.40 ▲0.0551.52 ▼0.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.07 ▼8.30
Media Library /wp-admin/upload.php3.27 ▲0.0439.85 ▲2.85
Comment But Not SEO Settings /wp-admin/options-general.php?page=cbns-settings3.2436.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comment But Not SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.80 ▼0.498.30 ▲6.6439.89 ▼4.14
Dashboard /wp-admin2,199 ▲225.55 ▼0.0884.21 ▼9.6538.04 ▼5.44
Posts /wp-admin/edit.php2,104 ▲71.99 ▲0.0136.03 ▲0.0436.31 ▼3.01
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲2.41694.20 ▲52.6752.95 ▲3.55
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.05111.29 ▲6.8249.86 ▲4.73
Comment But Not SEO Settings /wp-admin/options-general.php?page=cbns-settings8701.9925.7730.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-but-not-seo/comment-but-not-seo.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

comment-but-not-seo/comment-but-not-seo.php Passed 13 tests

The entry point to "Comment But Not SEO" version 1.0.0 is a PHP file that has certain tags in its header comment area
112 characters long description:
Displays a notice to the commenter not to use the URL field of comment form for their Search Engine Optimization

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected220 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14118206
JavaScript12014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin