88% complete-image-sitemap

Code Review | Complete Image Sitemap

WordPress plugin Complete Image Sitemap scored 88% from 54 tests.

About plugin

  • Plugin page: complete-image-si...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 5.8.1
  • First release: Mar 11, 2016
  • Latest release: Jun 6, 2020
  • Number of updates: 7
  • Update frequency: every 221.1 days
  • Top authors: remark.no (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 5,261 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.28ms] Passed 4 tests

This is a short check of server-side resources used by Complete Image Sitemap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1531.51 ▲10.64
Dashboard /wp-admin3.09 ▲0.0445.29 ▲1.45
Posts /wp-admin/edit.php3.14 ▲0.0446.86 ▲5.15
Add New Post /wp-admin/post-new.php5.45 ▲0.0285.01 ▼573.77
Media Library /wp-admin/upload.php3.03 ▲0.0332.66 ▼1.94
Complete Image Sitemap /wp-admin/tools.php?page=complete-image-sitemap2.9828.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Complete Image Sitemap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲12616.33 ▲0.789.14 ▲1.4248.97 ▼3.24
Dashboard /wp-admin2,978 ▲446.06 ▼0.10136.94 ▼4.37111.16 ▼4.83
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0062.79 ▼0.2787.10 ▼6.88
Add New Post /wp-admin/post-new.php1,503 ▼37318.51 ▼0.60375.67 ▼2.15110.07 ▲3.90
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.01143.50 ▼16.56125.69 ▲3.62
Complete Image Sitemap /wp-admin/tools.php?page=complete-image-sitemap1,0712.0553.8973.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=complete-image-sitemap
    • > Notice in wp-content/plugins/complete-image-sitemap/complete-image-sitemap.php+73
    Undefined index: license

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/complete-image-sitemap/complete-image-sitemap.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === complete-image-sitemap === )
You can look at the official readme.txt

complete-image-sitemap/complete-image-sitemap.php 92% from 13 tests

The entry point to "Complete Image Sitemap" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)

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
No dangerous file extensions were detected172 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11917172

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin