90% wp-remove-yoast-seo-comments

Code Review | WP Remove Yoast SEO Comments

WordPress plugin WP Remove Yoast SEO Comments scored90%from 54 tests.

About plugin

  • Plugin page: wp-remove-yoast-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Mar 1, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.42ms] Passed 4 tests

This is a short check of server-side resources used by WP Remove Yoast SEO Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0041.78 ▼3.45
Dashboard /wp-admin3.35 ▲0.0153.06 ▼0.63
Posts /wp-admin/edit.php3.40 ▲0.0049.60 ▼0.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0095.76 ▲5.29
Media Library /wp-admin/upload.php3.27 ▲0.0037.59 ▼1.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Remove Yoast SEO Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.131.80 ▲0.1044.12 ▼4.29
Dashboard /wp-admin2,189 ▲95.51 ▼0.13109.11 ▲12.2341.54 ▼0.98
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0137.39 ▲0.1633.43 ▲3.51
Add New Post /wp-admin/post-new.php1,526 ▼222.88 ▼0.13668.36 ▼9.6659.63 ▲5.42
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.04101.84 ▲0.1843.65 ▲0.23

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: yoast, seo, comments

wp-remove-yoast-seo-comments/wp-remove-yoast-seo-comments.php Passed 13 tests

The main file in "WP Remove Yoast SEO Comments" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Removes HTML comments added by Yoast SEO.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131213

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected