Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.24ms] Passed 4 tests
This is a short check of server-side resources used by Spreadshop Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 46.88 ▲2.33 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.79 ▲1.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.77 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 104.10 ▲7.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.82 ▲2.61 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Spreadshop Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.35 ▲0.05 | 1.96 ▼0.07 | 41.34 ▼2.81 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.01 | 89.66 ▼5.27 | 74.68 ▲20.58 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▼0.02 | 34.35 ▼9.13 | 32.29 ▼5.25 |
Add New Post /wp-admin/post-new.php | 1,693 ▲148 | 22.01 ▼1.16 | 777.37 ▲79.95 | 55.17 ▼14.34 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.14 ▼0.06 | 103.88 ▼0.58 | 75.37 ▲26.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/spreadshop/spreadshop-embed-as-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spreadshop/spreadshop.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
spreadshop/spreadshop.php Passed 13 tests
"Spreadshop Plugin" version 1.6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
This plugin integrates a Spreadshirt Shop into Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin704 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 59 | 60 | 624 |
CSS | 1 | 18 | 0 | 80 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 6 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 66.67% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/sprd_icon.png | 0.37KB | 0.31KB | ▼ 16.19% |