84% blog-image-sitemap

Code Review | Blog Image Sitemap

WordPress plugin Blog Image Sitemap scored 84% from 54 tests.

About plugin

  • Plugin page: blog-image-sitemap
  • Plugin version: 0.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Apr 8, 2021
  • Number of updates: 27
  • Update frequency: every 0.8 days
  • Top authors: john1302 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.22ms] Passed 4 tests

A check of server-side resources used by Blog Image Sitemap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.23 ▲2.23
Dashboard /wp-admin3.43 ▲0.1246.84 ▼5.95
Posts /wp-admin/edit.php3.54 ▲0.1944.09 ▼2.18
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.23 ▼14.99
Media Library /wp-admin/upload.php3.35 ▲0.1239.44 ▲5.06
WP Image Sitemap /wp-admin/options-general.php?page=image-sitemap-setting-page3.3232.77

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
5ba4c23331acf0c1249786f43138a12b
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Blog Image Sitemap
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.431.82 ▲0.0543.19 ▼1.08
Dashboard /wp-admin2,210 ▲225.79 ▲0.9094.95 ▼20.7939.84 ▼9.57
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0136.50 ▼2.2635.13 ▼0.01
Add New Post /wp-admin/post-new.php1,545 ▲323.27 ▲5.12668.95 ▲48.0861.47 ▲3.68
Media Library /wp-admin/upload.php1,395 ▲74.17 ▲0.0096.39 ▼0.6241.19 ▼1.56
WP Image Sitemap /wp-admin/options-general.php?page=image-sitemap-setting-page8102.1923.5232.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • 5ba4c23331acf0c1249786f43138a12b
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ImageSitemap\\site_url() in wp-content/plugins/blog-image-sitemap/classes/CronScheduleAction.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: sitemap, back, image, cron event

blog-image-sitemap/blog-image-sitemap.php Passed 13 tests

The main file in "Blog Image Sitemap" v. 0.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Create sitemap for blog pictures with cron schedule

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
Good job! No executable or dangerous file extensions detected2,388 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP115174692,383
XML1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity68.71
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity4.39
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods141
▷ Static methods117.80%
▷ Public methods11480.85%
▷ Protected methods1510.64%
▷ Private methods128.51%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin