10% ect-sitemap

Code Review | ECT Sitemap

WordPress plugin ECT Sitemap scored10%from 54 tests.

About plugin

  • Plugin page: ect-sitemap
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 1, 2015
  • Latest release: Sep 3, 2019
  • Number of updates: 27
  • Update frequency: every 57.7 days
  • Top authors: etemplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,965 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/ect-sitemap/ect-sitemap.php+13
    Undefined index: detlinkspacechar

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.99ms] Passed 4 tests

Analyzing server-side resources used by ECT Sitemap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.78 ▼2.81
Dashboard /wp-admin3.31 ▲0.0046.56 ▼6.29
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.16 ▼9.93
Media Library /wp-admin/upload.php3.23 ▲0.0033.36 ▼0.77

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

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ect-sitemap/" and "wp-content/uploads/"
    • (new file) sitemap.xml
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ECT Sitemap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.181.69 ▼0.1743.88 ▼0.16
Dashboard /wp-admin2,206 ▲145.85 ▼0.05101.62 ▼3.7940.46 ▲0.63
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0133.55 ▼5.4934.38 ▲1.95
Add New Post /wp-admin/post-new.php1,533 ▼223.22 ▼0.03648.68 ▼33.8755.05 ▼5.54
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.01106.55 ▲2.0245.73 ▲2.17

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ect-sitemap/ect-sitemap.php:11

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

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

ect-sitemap/ect-sitemap.php Passed 13 tests

The primary PHP file in "ECT Sitemap" version 2.0 is used by WordPress to initiate all plugin functionality
116 characters long description:
This plugin will generate a SITEMAP PAGE as well as xml sitemap file. Use [ECT_HTML_SITEMAP] to display html sitemap

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
Everything looks great! No dangerous files found in this plugin444 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13919419
CSS10125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/delete.png0.15KB0.14KB▼ 4.00%
img/ect28x28.png0.63KB0.58KB▼ 7.59%