90% dz-seo-adjustments

Code Review | DZ SEO Adjustments

WordPress plugin DZ SEO Adjustments scored90%from 54 tests.

About plugin

  • Plugin page: dz-seo-adjustments
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Nov 23, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: designzillas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.71ms] Passed 4 tests

This is a short check of server-side resources used by DZ SEO Adjustments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.67 ▼4.30
Dashboard /wp-admin3.36 ▲0.0649.34 ▼4.10
Posts /wp-admin/edit.php3.47 ▲0.1249.93 ▲1.17
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.42 ▼7.59
Media Library /wp-admin/upload.php3.28 ▲0.0537.46 ▲2.31

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

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

Browser metrics Passed 4 tests

DZ SEO Adjustments: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.381.77 ▲0.0141.40 ▼0.39
Dashboard /wp-admin2,195 ▲275.65 ▲0.0990.68 ▲0.6237.73 ▼5.22
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0339.81 ▲3.2236.46 ▲0.87
Add New Post /wp-admin/post-new.php1,545 ▼023.14 ▼0.01593.21 ▼76.7748.81 ▼2.02
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0296.98 ▼1.1243.89 ▲0.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: sitemap cache, dz, rank math, designzillas

dz-seo-adjustments/dz-seo-adjustments.php Passed 13 tests

The main PHP script in "DZ SEO Adjustments" version 1.0.0 is automatically included on every request by WordPress
66 characters long description:
Disables Rank Math sitemap cache and moves its meta box to footer.

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
Good job! No executable or dangerous file extensions detected949 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON200522
PHP984208365
XML1256543
Markdown111019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin