89% remove-yoast-seo-comments

Code Review | Remove Yoast SEO Comments

WordPress plugin Remove Yoast SEO Comments scored89%from 54 tests.

About plugin

  • Plugin page: remove-yoast-seo-...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.2.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 29, 2016
  • Latest release: Sep 25, 2018
  • Number of updates: 53
  • Update frequency: every 14.9 days
  • Top authors: lowest (96.23%)Otto42 (5.66%)

Code review

54 tests

User reviews

15 reviews

Install metrics

20,000+ active /146,774 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.24ms] Passed 4 tests

An overview of server-side resources used by Remove Yoast SEO Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.33 ▼5.51
Dashboard /wp-admin3.33 ▲0.0354.68 ▲2.29
Posts /wp-admin/edit.php3.38 ▲0.0356.04 ▲5.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.79 ▼8.25
Media Library /wp-admin/upload.php3.25 ▲0.0339.55 ▲2.52

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Remove Yoast SEO Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▲0.031.76 ▼0.3947.98 ▲2.33
Dashboard /wp-admin2,198 ▲245.50 ▼0.0893.17 ▼5.4739.39 ▼5.04
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0138.45 ▲2.8336.44 ▼0.56
Add New Post /wp-admin/post-new.php1,535 ▲718.32 ▼4.71614.84 ▼53.1363.68 ▲7.64
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.0795.24 ▼9.7141.47 ▼1.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: yoast seo, remove debug code, remove comments, remove html, lightweight...

remove-yoast-seo-comments/remove-yoast-seo-comments.php 77% from 13 tests

Analyzing the main PHP file in "Remove Yoast SEO Comments" version 3.1
It is important to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path must begin with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1253587

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin