90% disable-wp-robots

Code Review | Disable WP Robots

WordPress plugin Disable WP Robots scored90%from 54 tests.

About plugin

  • Plugin page: disable-wp-robots
  • Plugin version: 1.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Oct 25, 2023
  • Number of updates: 13
  • Update frequency: every 74.5 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Disable WP Robots
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.35 ▲0.26
Dashboard /wp-admin3.31 ▲0.0043.38 ▼9.13
Posts /wp-admin/edit.php3.36 ▲0.0044.10 ▼1.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.61 ▼3.31
Media Library /wp-admin/upload.php3.23 ▲0.0033.80 ▼4.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Disable WP Robots
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲2614.35 ▼0.371.83 ▲0.1140.61 ▼3.60
Dashboard /wp-admin2,198 ▲175.58 ▼0.0982.29 ▼19.7835.05 ▼3.33
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0333.61 ▼6.4435.22 ▼5.32
Add New Post /wp-admin/post-new.php1,526 ▼723.09 ▲0.34679.54 ▲49.2157.63 ▲9.93
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0497.34 ▼1.6642.90 ▼0.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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: robots, meta, disable

disable-wp-robots/disable-wp-robots.php 92% from 13 tests

"Disable WP Robots" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16313

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin