Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/greenstory-for-woocommerce/gs-index.php+22
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.23ms] Passed 4 tests
An overview of server-side resources used by GreenStory for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.68 ▼39.65 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.96 ▼53.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.35 ▼41.59 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.53 ▼98.30 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.93 ▼25.63 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for GreenStory for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.20 ▼1.10 | 1.87 ▼0.35 | 41.98 ▼0.46 |
Dashboard /wp-admin | 2,232 ▲47 | 4.97 ▲0.07 | 102.52 ▼6.69 | 72.24 ▲32.51 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.97 ▼0.04 | 37.83 ▼3.48 | 34.15 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.09 ▲4.95 | 730.47 ▲128.52 | 64.06 ▲7.85 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.14 ▼0.11 | 94.76 ▼19.71 | 72.94 ▲28.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/greenstory-for-woocommerce/gs-index.php+22
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greenstory-for-woocommerce/includes/gs-plugin.scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/greenstory-for-woocommerce/includes/gs-plugin.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== greenstory-for-woocommerce ===
) - Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in greenstory-for-woocommerce/assets to your readme.txt
greenstory-for-woocommerce/gs-index.php 92% from 13 tests
"GreenStory for WooCommerce" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("greenstory-for-woocommerce.php" instead of "gs-index.php")
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
No dangerous file extensions were detected1,510 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 254 | 126 | 1,491 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 198.00 |
▷ Minimum class complexity | 198.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.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 | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/gs-logo.png | 0.55KB | 0.48KB | ▼ 12.39% |