90% simply-sitemap

Code Review | Simply Sitemap

WordPress plugin Simply Sitemap scored90%from 54 tests.

About plugin

  • Plugin page: simply-sitemap
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2019
  • Latest release: Jun 23, 2019
  • Number of updates: 4
  • Update frequency: every 29.0 days
  • Top authors: jollygoodtime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /604 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Simply Sitemap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.63 ▲0.39
Dashboard /wp-admin3.32 ▲0.0246.35 ▼3.90
Posts /wp-admin/edit.php3.37 ▲0.0146.88 ▲2.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.56 ▼3.55
Media Library /wp-admin/upload.php3.25 ▲0.0137.19 ▲2.74

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simply Sitemap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.40 ▼0.001.70 ▼0.3043.89 ▲0.51
Dashboard /wp-admin2,209 ▲324.85 ▼0.04102.78 ▼6.2844.92 ▼4.78
Posts /wp-admin/edit.php2,089 ▲32.12 ▲0.1035.60 ▼2.5233.89 ▼4.13
Add New Post /wp-admin/post-new.php1,514 ▼1417.43 ▼0.83699.84 ▲52.9451.76 ▼3.78
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.01105.04 ▲0.8146.63 ▲3.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: sitemap, google sitemap, sitemap shortcode, html sitemap, xml sitemap generator

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

The primary PHP file in "Simply Sitemap" version 1.2.0 is used by WordPress to initiate all plugin functionality
21 characters long description:
Display Html Sitemaps

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
There were no executable files found in this plugin97 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1241097

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin