84% ultimate-410

Code Review | Ultimate 410 Gone Status Code

WordPress plugin Ultimate 410 Gone Status Code scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-410
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2020
  • Latest release: Apr 5, 2023
  • Number of updates: 14
  • Update frequency: every 69.4 days
  • Top authors: alpipego (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active / 15,215 total downloads

Benchmarks

Plugin footprint 83% 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.23MB] [CPU: ▲3.23ms] Passed 4 tests

Server-side resources used by Ultimate 410 Gone Status Code
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.39 ▲5.04
Dashboard /wp-admin3.62 ▲0.3276.14 ▲15.71
Posts /wp-admin/edit.php3.67 ▲0.3253.54 ▲7.50
Add New Post /wp-admin/post-new.php6.14 ▲0.2695.54 ▼15.35
Media Library /wp-admin/upload.php3.48 ▲0.2649.11 ▲17.12
Ultimate 410 /wp-admin/options-general.php?page=ultimate-4103.4944.54

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables
wp_ultimate_410
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
ultimate_410_db_version
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate 410 Gone Status Code
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.39 ▲0.452.52 ▲0.2555.16 ▲10.98
Dashboard /wp-admin2,207 ▲195.89 ▼0.01119.16 ▲0.2449.83 ▲9.89
Posts /wp-admin/edit.php2,093 ▲12.14 ▲0.1340.72 ▼6.5237.12 ▼8.59
Add New Post /wp-admin/post-new.php1,536 ▲721.00 ▲2.71692.03 ▲19.5559.09 ▼18.83
Media Library /wp-admin/upload.php1,389 ▼24.20 ▼0.03121.44 ▲4.4062.64 ▼8.25
Ultimate 410 /wp-admin/options-general.php?page=ultimate-4101,0281.7630.6934.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 37
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/ultimate-410/views/page/ultimate-410.php on line 15
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-regex.php on line 8
    • > PHP Notice
      Undefined variable: messages in wp-content/plugins/ultimate-410/views/admin-notice.php on line 6
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 26
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 30
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 27
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 37
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-410/views/field/ultimate-410-upload.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: 410, http-status

ultimate-410/ultimate-410.php Passed 13 tests

"Ultimate 410 Gone Status Code" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Ultimate 410 HTTP Status Code 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
No dangerous file extensions were detected1,569 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP303313581,569

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.93
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes646.15%
Methods103
▷ Static methods43.88%
▷ Public methods9087.38%
▷ Protected methods65.83%
▷ Private methods76.80%
Functions15
▷ Named functions320.00%
▷ Anonymous functions1280.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin