79% easy-custom-error-pages

Code Review | WordPress Easy Custom Error Pages

WordPress plugin WordPress Easy Custom Error Pages scored79%from 54 tests.

About plugin

  • Plugin page: easy-custom-error...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Sep 14, 2014
  • Number of updates: 5
  • Update frequency: every 13.2 days
  • Top authors: themattroyal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,674 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.91MB] [CPU: ▼36.31ms] Passed 4 tests

Analyzing server-side resources used by WordPress Easy Custom Error Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.63 ▼3.86
Dashboard /wp-admin3.03 ▼0.2724.17 ▼32.68
Posts /wp-admin/edit.php3.03 ▼0.3223.60 ▼26.43
Add New Post /wp-admin/post-new.php3.03 ▼2.8624.20 ▼77.46
Media Library /wp-admin/upload.php3.03 ▼0.2026.51 ▼8.67

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 11 files (7.26KB) outside of "wp-content/plugins/easy-custom-error-pages/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/502.php
    • (new file) wp-content/themes/twentytwentyone/500.php
    • (new file) wp-content/themes/twentytwentyone/503.php
    • (modified) .htaccess
    • (new file) wp-content/themes/twentytwentyone/402.php
    • (modified) wp-content/themes/twentytwentyone/404.php
    • (new file) wp-content/themes/twentytwentyone/401.php
    • (new file) wp-content/themes/twentytwentyone/408.php
    • (new file) wp-content/themes/twentytwentyone/403.php
    • (new file) wp-content/themes/twentytwentyone/400.php
    • ...
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Easy Custom Error Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.35 ▼0.941.87 ▲0.0836.62 ▼7.97
Dashboard /wp-admin2,206 ▲244.86 ▼1.05103.33 ▲0.1642.05 ▼3.49
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0338.70 ▼1.1236.26 ▼1.90
Add New Post /wp-admin/post-new.php1,514 ▼1417.69 ▼0.65668.30 ▲61.6453.66 ▼1.22
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0395.22 ▼9.0644.67 ▼2.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #2 (Sample View of Custom Error Page being Called in your browser)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-custom-error-pages/easy-custom-error-pages.php 92% from 13 tests

This is the main PHP file of "WordPress Easy Custom Error Pages" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25736135
Markdown1506

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin