84% simple-not-found-rescue

Code Review | Simple Not Found Rescue

WordPress plugin Simple Not Found Rescue scored 84% from 54 tests.

About plugin

  • Plugin page: simple-not-found-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: Jun 20, 2019
  • Number of updates: 3
  • Update frequency: every 126.0 days
  • Top authors: kevinhq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 598 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.00MB] [CPU: ▼6.81ms] Passed 4 tests

A check of server-side resources used by Simple Not Found Rescue
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.36 ▼14.57
Dashboard /wp-admin3.31 ▲0.0043.44 ▼7.04
Posts /wp-admin/edit.php3.36 ▲0.0046.53 ▼4.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.41 ▲0.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▼0.74

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Simple Not Found Rescue: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▼0.131.84 ▼0.4340.77 ▼5.09
Dashboard /wp-admin2,203 ▲154.87 ▼0.1899.48 ▼15.1540.41 ▼5.72
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0139.69 ▲4.4136.58 ▲0.05
Add New Post /wp-admin/post-new.php1,537 ▲2018.25 ▲0.50591.82 ▼79.1155.79 ▲7.01
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0295.71 ▼20.0241.53 ▼8.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-not-found-rescue/simple-not-found-rescue.php:41

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: security

simple-not-found-rescue/simple-not-found-rescue.php Passed 13 tests

The entry point to "Simple Not Found Rescue" version 1.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
Rescue all 404 not found error and redirect it to homepage - Private Plugin

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
Good job! No executable or dangerous file extensions detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18258

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin