Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼298.64ms] Passed 4 tests
A check of server-side resources used by Add SVG Support for Media Uploader | inventivo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.47 | 55.68 ▲27.92 |
Dashboard /wp-admin | 4.06 ▲0.02 | 49.08 ▲8.21 |
Posts /wp-admin/edit.php | 4.34 ▲0.02 | 48.70 ▲3.93 |
Add New Post /wp-admin/post-new.php | 7.59 ▼0.01 | 95.74 ▼1,163.19 |
Media Library /wp-admin/upload.php | 4.00 ▲0.01 | 31.90 ▼43.49 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Add SVG Support for Media Uploader | inventivo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲82 | 15.55 ▼0.06 | 9.32 ▲2.54 | 2.14 ▼0.56 |
Dashboard /wp-admin | 2,960 ▲103 | 6.19 ▲0.02 | 118.33 ▼12.10 | 198.18 ▲27.97 |
Posts /wp-admin/edit.php | 2,759 ▲68 | 3.23 ▼0.01 | 66.05 ▲1.50 | 305.18 ▲160.73 |
Add New Post /wp-admin/post-new.php | 1,802 ▲50 | 21.39 ▼0.20 | 441.44 ▼40.38 | 275.06 ▲109.62 |
Media Library /wp-admin/upload.php | 1,759 ▲61 | 5.55 ▲0.03 | 128.55 ▼25.53 | 228.79 ▲37.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 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
3 plugin tags: svg, upload svg, svg media uploader
add-svg-support-for-media-uploader-inventivo/inventivo-addsvgsupport.php 77% from 13 tests
Analyzing the main PHP file in "Add SVG Support for Media Uploader | inventivo" version 1.0.5
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("add-svg-support-for-media-uploader-inventivo.php" instead of "inventivo-addsvgsupport.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin108 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 27 | 68 |
Markdown | 1 | 25 | 0 | 29 |
Sass | 1 | 1 | 0 | 10 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-256x256-1.png | 33.55KB | 11.45KB | ▼ 65.87% |