84% remove-wp-engine-404-for-bots

Code Review | Remove WP Engine 404 for Bots

WordPress plugin Remove WP Engine 404 for Bots scored 84% from 54 tests.

About plugin

  • Plugin page: remove-wp-engine-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2014
  • Latest release: Mar 19, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: JPry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Remove WP Engine 404 for Bots
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.29 ▼3.82
Dashboard /wp-admin3.31 ▲0.0044.33 ▼0.97
Posts /wp-admin/edit.php3.36 ▲0.0048.26 ▲2.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.09 ▼13.28
Media Library /wp-admin/upload.php3.23 ▲0.0040.93 ▲6.13

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove WP Engine 404 for Bots
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.731.64 ▼0.0738.52 ▼2.60
Dashboard /wp-admin2,209 ▲205.77 ▲0.84100.47 ▼11.9841.48 ▲0.49
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0237.03 ▼1.6232.85 ▲1.94
Add New Post /wp-admin/post-new.php1,545 ▲1123.36 ▲0.19654.75 ▼20.4044.66 ▼13.82
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0995.19 ▼2.1739.56 ▼5.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/remove-wp-engine-404-for-bots/remove-wpengine-404.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

remove-wp-engine-404-for-bots/remove-wpengine-404.php 92% from 13 tests

The primary PHP file in "Remove WP Engine 404 for Bots" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("remove-wp-engine-404-for-bots.php" instead of "remove-wpengine-404.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172216

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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

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