82% 404-to-start

Code Review | 404 to Start

WordPress plugin 404 to Start scored 82% from 54 tests.

About plugin

  • Plugin page: 404-to-start
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.4
  • WordPress version: 5.9.2
  • First release: Jan 3, 2011
  • Latest release: Oct 31, 2019
  • Number of updates: 58
  • Update frequency: every 55.6 days
  • Top authors: 1manfactory (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

30,000+ active / 408,076 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼295.14ms] Passed 4 tests

An overview of server-side resources used by 404 to Start
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0855.26 ▲0.21
Dashboard /wp-admin3.47 ▲0.0633.20 ▼1.96
Posts /wp-admin/edit.php3.69 ▲0.0537.45 ▼6.80
Add New Post /wp-admin/post-new.php6.93 ▼0.0495.73 ▼1,172.00
Media Library /wp-admin/upload.php3.34 ▲0.0534.03 ▲4.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
f042start_target
f042start_type
f042start_exclude3
f042start_exclude2
f042start_emailalert
f042start_exclude
f042start_emailaddres

Browser metrics Passed 4 tests

An overview of browser requirements for 404 to Start
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.41 ▲0.115.74 ▼0.422.94 ▲0.30
Dashboard /wp-admin2,904 ▲366.10 ▲0.03121.43 ▼65.89180.87 ▲8.82
Posts /wp-admin/edit.php2,662 ▼293.25 ▲0.0369.46 ▲3.62211.20 ▲6.97
Add New Post /wp-admin/post-new.php1,658 ▲1921.21 ▲1.88463.08 ▲20.13179.23 ▲29.94
Media Library /wp-admin/upload.php1,703 ▲85.50 ▼0.02153.07 ▲6.38221.86 ▲28.58
404 to Start /wp-admin/404-to-start.php260.940.0321.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/404-to-start/whatsup.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/404-to-start/404-to-start.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/404-to-start.php
    • > Network (severe)
    wp-admin/404-to-start.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Basic Settings) image not found
The official readme.txt is a good inspiration

404-to-start/404-to-start.php 92% from 13 tests

Analyzing the main PHP file in "404 to Start" version 1.6.1
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected332 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24737167
PO File44954165

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.48KB9.69KB▼ 33.11%