89% super-simple-xml-image-sitemap

Code Review | Super Simple XML Image Sitemap

WordPress plugin Super Simple XML Image Sitemap scored89%from 54 tests.

About plugin

  • Plugin page: super-simple-xml-...
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: samuelpedraza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Super Simple XML Image Sitemap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.28 ▼3.05
Dashboard /wp-admin3.32 ▲0.0145.81 ▼3.94
Posts /wp-admin/edit.php3.37 ▲0.0147.43 ▲3.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.69 ▲6.17
Media Library /wp-admin/upload.php3.24 ▲0.0136.82 ▲4.34

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

How much does this plugin use your filesystem and database?
These are issues you should consider
  • The plugin illegally modified 1 file (0.17KB) outside of "wp-content/plugins/super-simple-xml-image-sitemap/" and "wp-content/uploads/"
    • (new file) image-sitemap.xml
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Simple XML Image Sitemap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.391.84 ▼0.0841.96 ▼1.10
Dashboard /wp-admin2,198 ▲215.56 ▼0.1493.34 ▼9.8238.99 ▼1.56
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0743.88 ▲6.2635.65 ▲0.75
Add New Post /wp-admin/post-new.php1,526 ▼223.19 ▲0.00663.85 ▼17.0162.04 ▲9.20
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0293.27 ▼0.0043.48 ▼0.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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: Add an image for screenshot #1 (/assets/screenshot-1.png)
You can take inspiration from this readme.txt

super-simple-xml-image-sitemap/index.php 85% from 13 tests

The main PHP script in "Super Simple XML Image Sitemap" version 0.1.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 238 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-xml-image-sitemap.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211245

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions2
▷ Named functions2100.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png93.63KB29.05KB▼ 68.98%