Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.93ms] Passed 4 tests
A check of server-side resources used by WP-Spreadplugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 34.40 ▼5.70 |
Dashboard /wp-admin | 3.39 ▲0.05 | 44.12 ▼17.69 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.85 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.95 ▼14.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 44.98 ▲11.48 |
Spreadplugin /wp-admin/options-general.php?page=splg_options | 3.58 | 37.05 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_spreadplugin_coupon_widget |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_spreadplugin_basket_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Spreadplugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.82 ▼0.54 | 17.37 ▲15.58 | 38.38 ▼8.62 |
Dashboard /wp-admin | 2,213 ▲36 | 5.72 ▼0.16 | 84.99 ▼1.79 | 37.22 ▼5.09 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.24 ▲0.29 | 42.19 ▲2.24 | 36.79 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.23 ▼0.10 | 693.92 ▲15.29 | 37.44 ▼23.91 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.51 ▲0.26 | 104.71 ▲2.83 | 46.16 ▼0.14 |
Spreadplugin /wp-admin/options-general.php?page=splg_options | 2,145 | 2.54 | 46.35 | 33.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_spreadplugin_coupon_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_spreadplugin_basket_widget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=splg_options
- > Notice in wp-content/plugins/wp-spreadplugin/options.php+71
Undefined index: shop_api
- > GET request to /wp-admin/options-general.php?page=splg_options
- > Notice in wp-content/plugins/wp-spreadplugin/options.php+77
Undefined index: shop_secret
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wp-spreadplugin/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spreadplugin/spreadplugin.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: integration, online store, plugin, store, shirt...
wp-spreadplugin/spreadplugin.php 77% from 13 tests
The primary PHP file in "WP-Spreadplugin" version 4.8.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-spreadplugin.php" instead of "spreadplugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin10,343 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 2,273 | 3,128 | 4,372 |
PHP | 3 | 551 | 563 | 3,015 |
CSS | 4 | 261 | 35 | 1,755 |
JavaScript | 8 | 75 | 98 | 612 |
SVG | 1 | 0 | 3 | 534 |
JSON | 3 | 0 | 0 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 188.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 550.00 |
Average method complexity | 8.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 17 | 23.61% |
▷ Public methods | 50 | 69.44% |
▷ Protected methods | 22 | 30.56% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin