68% genius-404

Code Review | genius 404

WordPress plugin genius 404 scored68%from 54 tests.

About plugin

  • Plugin page: genius-404
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Apr 1, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: hussam7ussien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,589 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼35.31ms] Passed 4 tests

Server-side resources used by genius 404
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.97 ▲9.25
Dashboard /wp-admin3.00 ▼0.3125.77 ▼24.60
Posts /wp-admin/edit.php3.00 ▼0.3621.19 ▼26.87
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.14 ▼78.27
Media Library /wp-admin/upload.php3.00 ▼0.2322.95 ▼11.48
genius 404 /wp-admin/options-general.php?page=genius-404/genius404.php3.0023.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
also_search
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
ignored_patterns
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by genius 404
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.62 ▲0.051.77 ▼0.2039.16 ▼5.94
Dashboard /wp-admin2,199 ▲195.62 ▲0.0286.79 ▼0.4640.33 ▲1.45
Posts /wp-admin/edit.php2,111 ▲112.07 ▲0.0937.76 ▼3.2335.51 ▼0.47
Add New Post /wp-admin/post-new.php1,529 ▲422.88 ▼0.12691.11 ▲39.5762.65 ▲6.34
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.1294.38 ▼10.1441.66 ▼3.29
genius 404 /wp-admin/options-general.php?page=genius-404/genius404.php8812.0032.9531.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 8 options
    • also_search
    • widget_theysaidso_widget
    • ignored_patterns
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=genius-404/genius404.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genius-404/genius404.php:351

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

genius-404/genius404.php 85% from 13 tests

The principal PHP file in "genius 404" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genius-404.php" instead of "genius404.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 398 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin191 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP156110191

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin