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
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.61 ▲11.30 |
Dashboard /wp-admin | 3.07 ▲0.02 | 52.40 ▲0.07 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.61 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 95.34 ▼574.62 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 48.87 ▲13.69 |
SVG Spritemap /wp-admin/upload.php?page=svgmap | 3.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲91 | 15.93 ▲0.35 | 10.24 ▼3.52 | 69.02 ▲15.68 |
Dashboard /wp-admin | 2,978 ▲44 | 6.09 ▲0.11 | 163.81 ▼12.12 | 130.24 ▲5.47 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.70 ▼0.01 | 89.00 ▲7.92 | 98.60 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,689 ▲74 | 18.48 ▼2.93 | 417.86 ▲75.72 | 109.30 ▼40.65 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.05 ▲0.00 | 162.96 ▼28.63 | 135.80 ▲2.04 |
SVG Spritemap /wp-admin/upload.php?page=svgmap | 1,091 | 2.12 | 66.26 | 92.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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 21 | 1 | 83 |
CSS | 1 | 13 | 0 | 71 |
PHP | 2 | 15 | 10 | 56 |
Pascal | 4 | 18 | 19 | 25 |
Markdown | 2 | 14 | 0 | 21 |
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 code | 0.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 5.02KB | 5.28KB | 0.00% |
assets/screenshot-1.png | 6.97KB | 7.68KB | 0.00% |
assets/banner-1544x500.png | 11.58KB | 12.33KB | 0.00% |