94% svg-spritemap

Code Review | SVG Spritemap

WordPress plugin SVG Spritemap scored 94% from 54 tests.

About plugin

  • Plugin page: svg-spritemap
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.8.1
  • First release: Jul 31, 2014
  • Latest release: Jul 31, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jonathantneal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,912 total downloads


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
Installer ran successfully

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

A check of server-side resources used by SVG Spritemap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.61 ▲11.30
Dashboard /wp-admin3.07 ▲0.0252.40 ▲0.07
Posts /wp-admin/edit.php3.13 ▲0.0245.61 ▼1.73
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.34 ▼574.62
Media Library /wp-admin/upload.php3.02 ▲0.0248.87 ▲13.69
SVG Spritemap /wp-admin/upload.php?page=svgmap3.0129.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SVG Spritemap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲9115.93 ▲0.3510.24 ▼3.5269.02 ▲15.68
Dashboard /wp-admin2,978 ▲446.09 ▲0.11163.81 ▼12.12130.24 ▲5.47
Posts /wp-admin/edit.php2,747 ▲82.70 ▼0.0189.00 ▲7.9298.60 ▼0.44
Add New Post /wp-admin/post-new.php1,689 ▲7418.48 ▼2.93417.86 ▲75.72109.30 ▼40.65
Media Library /wp-admin/upload.php1,815 ▲85.05 ▲0.00162.96 ▼28.63135.80 ▲2.04
SVG Spritemap /wp-admin/upload.php?page=svgmap1,0912.1266.2692.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/svg-spritemap/index.php

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)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The SVG spritemap manager.) image required
You can look at the official readme.txt

svg-spritemap/index.php 92% from 13 tests

The main file in "SVG Spritemap" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("svg-spritemap.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin256 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

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.07
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings