74% eas-sitemap-generator

Code Review | EAS Sitemap Generator

WordPress plugin EAS Sitemap Generator scored74%from 54 tests.

About plugin

  • Plugin page: eas-sitemap-gener...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 12, 2017
  • Latest release: Feb 12, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jamilvelji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /806 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.19MB] [CPU: ▼46.17ms] Passed 4 tests

A check of server-side resources used by EAS Sitemap Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.6817.75 ▼30.12
Dashboard /wp-admin2.83 ▼0.4822.66 ▼37.36
Posts /wp-admin/edit.php2.83 ▼0.5322.82 ▼31.14
Add New Post /wp-admin/post-new.php2.83 ▼3.0619.85 ▼86.06
Media Library /wp-admin/upload.php2.83 ▼0.4018.49 ▼20.70

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The plugin illegally modified 1 file (0.53KB) outside of "wp-content/plugins/eas-sitemap-generator/" and "wp-content/uploads/"
    • (new file) sitemap.xml
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for EAS Sitemap Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.75 ▲0.391.80 ▼0.7543.23 ▼11.68
Dashboard /wp-admin2,213 ▲254.88 ▼1.0099.74 ▼25.5574.54 ▲27.71
Posts /wp-admin/edit.php2,111 ▲222.01 ▼0.0141.81 ▲1.2934.02 ▼6.26
Add New Post /wp-admin/post-new.php1,531 ▲317.49 ▼0.98740.60 ▲68.5052.14 ▼16.33
Media Library /wp-admin/upload.php1,401 ▲104.20 ▲0.03103.43 ▼9.3566.88 ▲15.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/eas-sitemap-generator/include/inc-eas-sitemap.php+8
    Undefined variable: eas_xml_sitemap
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/eas-sitemap-generator/include/inc-eas-sitemap.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eas-sitemap-generator/eas-sitemap-generator.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Settings in Admin.) image required
The official readme.txt is a good inspiration

eas-sitemap-generator/eas-sitemap-generator.php Passed 13 tests

The primary PHP file in "EAS Sitemap Generator" version 4.2 is used by WordPress to initiate all plugin functionality
21 characters long description:
EAS Sitemap Generator

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2458102
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/eas-sitemap1.png3.33KB0.40KB▼ 88.14%
screenshot-1.png16.20KB9.68KB▼ 40.27%