99% 410-delete-pages-seo

Code Review | 410 Delete Pages SEO

WordPress plugin 410 Delete Pages SEO scored 99% from 54 tests.

About plugin

  • Plugin page: 410-delete-pages-seo
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4
  • WordPress version: 5.9.2
  • First release: Apr 21, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: edsteep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 682 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: ▼291.23ms] Passed 4 tests

A check of server-side resources used by 410 Delete Pages SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0958.18 ▲6.90
Dashboard /wp-admin3.46 ▲0.0634.19 ▲0.17
Posts /wp-admin/edit.php3.70 ▲0.0635.57 ▼1.94
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.76 ▼1,164.63
Media Library /wp-admin/upload.php3.35 ▲0.0525.03 ▲1.49
410 Deleted Pages /wp-admin/plugins.php?page=deletepages_410_settings3.3227.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 2 new options
New tables
wp_410_links
New WordPress options
deletepages_410_max_404s
deletepages_410_options_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for 410 Delete Pages SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6615.87 ▲0.126.15 ▲0.682.00 ▼0.12
Dashboard /wp-admin2,893 ▲326.15 ▼0.04114.51 ▼23.41150.97 ▼11.79
Posts /wp-admin/edit.php2,696 ▲23.23 ▲0.0062.00 ▼2.42142.14 ▲1.11
Add New Post /wp-admin/post-new.php1,759 ▲9817.18 ▲0.77410.60 ▼11.77154.04 ▲4.68
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.02150.67 ▲9.79277.88 ▲96.57
410 Deleted Pages /wp-admin/plugins.php?page=deletepages_410_settings1,1232.3855.30123.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

410-delete-pages-seo/deletedpages-410.php 92% from 13 tests

This is the main PHP file of "410 Delete Pages SEO" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("410-delete-pages-seo.php" instead of "deletedpages-410.php")

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
Everything looks great! No dangerous files found in this plugin336 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26929336

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods640.00%
▷ Protected methods00.00%
▷ Private methods960.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
No PNG images were found in this plugin