Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.78MB] [CPU: ▼315.14ms] Passed 4 tests
A check of server-side resources used by SpareMin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.85 ▼0.98 | 7.97 ▼25.72 |
Dashboard /wp-admin | 1.87 ▼1.18 | 6.51 ▼36.71 |
Posts /wp-admin/edit.php | 1.87 ▼1.23 | 5.47 ▼44.82 |
Add New Post /wp-admin/post-new.php | 1.87 ▼3.56 | 5.19 ▼1,147.65 |
Media Library /wp-admin/upload.php | 1.87 ▼1.14 | 5.65 ▼31.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_sparemin |
Browser metrics Passed 4 tests
SpareMin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲92 | 15.86 ▲0.40 | 7.11 ▼0.50 | 49.53 ▲1.32 |
Dashboard /wp-admin | 2,928 ▲78 | 5.91 ▲0.08 | 143.15 ▲6.87 | 123.92 ▲19.27 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.00 | 78.28 ▲12.68 | 95.49 ▲2.63 |
Add New Post /wp-admin/post-new.php | 3,670 ▲2,017 | 15.10 ▼3.51 | 405.38 ▲40.03 | 105.34 ▼2.78 |
Media Library /wp-admin/upload.php | 1,775 ▲6 | 5.03 ▲0.02 | 140.29 ▼12.70 | 116.06 ▼8.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-includes/plugin.php+947
Undefined offset: 0
- The uninstall procedure has failed, leaving 1 option in the database
- widget_sparemin
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sparemin/parts/style-Dark.php
- > /wp-content/plugins/sparemin/parts/style-Light.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sparemin/parts/widget-form.php:2
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: sparemin
sparemin/sparemin.php 92% from 13 tests
The entry point to "SpareMin" version 3.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected355 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 97 | 53 | 289 |
Sass | 1 | 18 | 0 | 65 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 5 | 41.67% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/poweredbysparemin.png | 3.58KB | 2.20KB | ▼ 38.57% |
images/button.png | 7.50KB | 3.20KB | ▼ 57.37% |