84% wp-seo-content-cloaker

Code Review | Wordpress SEO Content Cloaker

WordPress plugin Wordpress SEO Content Cloaker scored 84% from 54 tests.

About plugin

  • Plugin page: wp-seo-content-cl...
  • Plugin version: 20190415...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Apr 13, 2019
  • Number of updates: 11
  • Update frequency: every 11.6 days
  • Top authors: nicolastrimardeau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 3,550 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.82ms] Passed 4 tests

An overview of server-side resources used by Wordpress SEO Content Cloaker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.12 ▼8.15
Dashboard /wp-admin3.32 ▲0.0247.59 ▼1.16
Posts /wp-admin/edit.php3.37 ▲0.0247.16 ▼0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.56 ▼1.63
Media Library /wp-admin/upload.php3.24 ▲0.0235.14 ▲1.48

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress SEO Content Cloaker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼1.021.69 ▼0.2037.49 ▼6.62
Dashboard /wp-admin2,203 ▲125.83 ▼0.03102.45 ▼1.5342.36 ▼0.70
Posts /wp-admin/edit.php2,086 ▼62.05 ▼0.0040.48 ▼0.0937.21 ▼0.57
Add New Post /wp-admin/post-new.php1,514 ▼017.70 ▲0.12613.04 ▲3.9149.04 ▼12.75
Media Library /wp-admin/upload.php1,391 ▲34.24 ▼0.05102.19 ▲0.8543.57 ▲2.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-seo-content-cloaker/shortcodes/seo_crawler_show.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-seo-content-cloaker/shortcodes/google_bot_hide.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-seo-content-cloaker/shortcodes/google_bot_show.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-seo-content-cloaker/shortcodes/google_bot_hide.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-seo-content-cloaker/shortcodes/seo_crawler_hide.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% 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
3 plugin tags: seo, cloaking, search engine

wp-seo-content-cloaker/wp-seo-content-cloaker.php 92% from 13 tests

"Wordpress SEO Content Cloaker" version 20190415...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20190415...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin130 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61427130

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin