83% search-engines-blocked-warning

Code Review | Search engines blocked warning

WordPress plugin Search engines blocked warning scored83%from 54 tests.

About plugin

  • Plugin page: search-engines-bl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Sep 23, 2023
  • Number of updates: 21
  • Update frequency: every 84.8 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /1,652 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Search engines blocked warning
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.38 ▼1.19
Dashboard /wp-admin3.32 ▲0.0243.57 ▼7.35
Posts /wp-admin/edit.php3.37 ▲0.0143.97 ▼2.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.27 ▼3.57
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▲0.01

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

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

Browser metrics Passed 4 tests

Search engines blocked warning: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.17 ▼0.171.88 ▲0.3140.73 ▲0.81
Dashboard /wp-admin2,200 ▲265.61 ▲0.0384.49 ▼0.2039.93 ▼2.67
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0635.17 ▼1.9535.94 ▲1.16
Add New Post /wp-admin/post-new.php1,537 ▲1118.30 ▼4.81601.34 ▼86.2666.05 ▲9.27
Media Library /wp-admin/upload.php1,402 ▲24.15 ▼0.0499.96 ▼11.6244.03 ▼2.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-engines-blocked-warning/search-engine-blocked-warning.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: block, search engines, robotstxt, index, discourage search engines...

search-engines-blocked-warning/search-engine-blocked-warning.php 77% from 13 tests

The main file in "Search engines blocked warning" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("search-engines-blocked-warning.php" instead of "search-engine-blocked-warning.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File18850
PHP142336

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin