84% easy-sitemap-page

Code Review | Easy Sitemap Page

WordPress plugin Easy Sitemap Page scored84%from 54 tests.

About plugin

  • Plugin page: easy-sitemap-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Mar 2, 2017
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: norhouse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Easy Sitemap Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.02 ▲3.48
Dashboard /wp-admin3.32 ▲0.0149.40 ▲1.07
Posts /wp-admin/edit.php3.37 ▲0.0145.40 ▼5.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.04 ▼17.11
Media Library /wp-admin/upload.php3.24 ▲0.0131.96 ▼1.31
Easy Sitemap Page /wp-admin/options-general.php?page=easy-sitemap-page/easy-sitemap-page.php3.2327.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Sitemap Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.56 ▼1.061.70 ▼0.1644.14 ▼0.57
Dashboard /wp-admin2,210 ▲395.83 ▼0.06100.22 ▼8.1542.57 ▼3.43
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0335.08 ▼5.8736.57 ▲1.28
Add New Post /wp-admin/post-new.php1,549 ▲2118.61 ▲0.35638.31 ▲33.9966.39 ▲6.83
Media Library /wp-admin/upload.php1,395 ▲44.27 ▼0.10104.17 ▲8.6342.92 ▼0.06
Easy Sitemap Page /wp-admin/options-general.php?page=easy-sitemap-page/easy-sitemap-page.php8492.0522.0428.80

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-sitemap-page/easy-sitemap-page.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Easy Sitemap Page) image missing
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

easy-sitemap-page/easy-sitemap-page.php Passed 13 tests

"Easy Sitemap Page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
Add responsive sitemap in page using simple shortcode. No any extra setup required. Easy to customize.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin308 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19766308

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.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.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png48.11KB29.53KB▼ 38.63%