84% dn-sitemap-control

Code Review | DN Sitemap Control

WordPress plugin DN Sitemap Control scored84%from 54 tests.

About plugin

  • Plugin page: dn-sitemap-control
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Oct 20, 2020
  • Number of updates: 14
  • Update frequency: every 2.9 days
  • Top authors: digireturn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.47ms] Passed 4 tests

A check of server-side resources used by DN Sitemap Control
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.17 ▼7.36
Dashboard /wp-admin3.32 ▲0.0149.08 ▲0.23
Posts /wp-admin/edit.php3.37 ▲0.0150.00 ▲2.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.71 ▲1.11
Media Library /wp-admin/upload.php3.24 ▲0.0134.87 ▲0.13
DN Sitemap Control /wp-admin/options-general.php?page=dn_sitemap_menage3.2131.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for DN Sitemap Control
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.111.64 ▼0.4038.92 ▼8.47
Dashboard /wp-admin2,213 ▲254.85 ▼0.03108.29 ▼14.0843.97 ▼1.58
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0740.13 ▲1.2834.75 ▲0.12
Add New Post /wp-admin/post-new.php6,327 ▲4,79422.19 ▼1.08836.96 ▲178.8555.59 ▼17.35
Media Library /wp-admin/upload.php1,392 ▲104.19 ▲0.0193.05 ▼4.6540.07 ▼4.18
DN Sitemap Control /wp-admin/options-general.php?page=dn_sitemap_menage7792.0527.8329.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/dn-sitemap-control/dn-sitemap-control.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: sitemap, seo

dn-sitemap-control/dn-sitemap-control.php 92% from 13 tests

The entry point to "DN Sitemap Control" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin327 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1010230
PO File17011697

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.89
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%
Functions16
▷ Named functions16100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png30.98KB6.44KB▼ 79.21%