89% 410-delete-pages-seo

Code Review | 410 Delete Pages SEO

WordPress plugin 410 Delete Pages SEO scored89%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: 6.3.1
  • 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 /1,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.91ms] Passed 4 tests

This is a short check of server-side resources used by 410 Delete Pages SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.89 ▲1.58
Dashboard /wp-admin3.36 ▲0.0152.38 ▼12.82
Posts /wp-admin/edit.php3.41 ▲0.0549.86 ▼4.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.06 ▼11.33
Media Library /wp-admin/upload.php3.28 ▲0.0536.89 ▼2.51
410 Deleted Pages /wp-admin/plugins.php?page=deletepages_410_settings3.2537.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: 1 new table, 8 new options
New tables
wp_410_links
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
deletepages_410_options_version
db_upgraded
theysaidso_admin_options
deletepages_410_max_404s

Browser metrics Passed 4 tests

A check of browser resources used by 410 Delete Pages SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.511.85 ▼0.0144.52 ▲1.51
Dashboard /wp-admin2,202 ▲255.62 ▲0.0595.21 ▲0.9042.41 ▼1.44
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0234.80 ▼3.8835.11 ▼0.63
Add New Post /wp-admin/post-new.php1,548 ▲1723.42 ▼0.03691.99 ▲24.3654.80 ▼8.61
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.0199.33 ▼12.5945.56 ▼0.59
410 Deleted Pages /wp-admin/plugins.php?page=deletepages_410_settings8852.0326.6233.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

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

"410 Delete Pages SEO" version 0.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected336 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
This plugin has no cyclomatic complexity issues
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin