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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.55MB] [CPU: ▼29.11ms] Passed 4 tests
This is a short check of server-side resources used by Accumulus Subscription Commerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 47.28 ▲7.43 |
Dashboard /wp-admin | 3.39 ▲0.09 | 31.39 ▼20.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 32.69 ▼20.23 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.49 | 29.81 ▼56.29 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 26.05 ▼19.12 |
Accumulus /wp-admin/options-general.php?page=accumulus | 3.48 | 35.77 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 506 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Accumulus Subscription Commerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.44 ▲0.09 | 1.74 ▼0.07 | 42.35 ▼0.99 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▲0.94 | 100.19 ▼12.78 | 37.14 ▼6.87 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.02 | 35.54 ▼2.96 | 35.21 ▼5.84 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.31 ▲5.74 | 659.05 ▼21.34 | 54.40 ▲0.21 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.12 | 103.49 ▼13.24 | 45.20 ▼3.00 |
Accumulus /wp-admin/options-general.php?page=accumulus | 963 | 2.03 | 27.48 | 28.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/accumulus-subscription-commerce/settings.php+259
Undefined index: page
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=accumulus
- > Notice in wp-content/plugins/accumulus-subscription-commerce/settings.php+171
Undefined index: showitest
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
Please take a closer look at the following
- 64× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accumulus-subscription-commerce/includes/scripts.php:29
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/guzzle/src/Pool.php:19
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accumulus-subscription-commerce/accumulus.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== accumulus-subscription-commerce ===
) - Screenshots: These screenshots require images: #1 (Accumulus Subscription Commerce Signup Widget for Wordpress), #2 (Accumulus WordPress Settings)
accumulus-subscription-commerce/accumulus.php 92% from 13 tests
The entry point to "Accumulus Subscription Commerce" version 2.5.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accumulus-subscription-commerce.php" instead of "accumulus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin29,486 lines of code in 436 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,154 | 6,652 | 10,222 |
JavaScript | 218 | 1,916 | 2,960 | 9,690 |
Markdown | 17 | 1,251 | 0 | 3,762 |
CSS | 10 | 350 | 358 | 3,130 |
JSON | 12 | 67 | 0 | 1,443 |
HTML | 21 | 153 | 12 | 855 |
SVG | 18 | 0 | 3 | 210 |
YAML | 2 | 6 | 0 | 56 |
PO File | 1 | 20 | 19 | 53 |
XML | 2 | 0 | 0 | 53 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 15 | |
Traits | 8 | |
Classes | 83 | |
▷ Abstract classes | 2 | 2.41% |
▷ Concrete classes | 81 | 97.59% |
▷ Final classes | 7 | 8.64% |
Methods | 771 | |
▷ Static methods | 65 | 8.43% |
▷ Public methods | 597 | 77.43% |
▷ Protected methods | 64 | 8.30% |
▷ Private methods | 110 | 14.27% |
Functions | 179 | |
▷ Named functions | 91 | 50.84% |
▷ Anonymous functions | 88 | 49.16% |
Constants | 56 | |
▷ Global constants | 5 | 8.93% |
▷ Class constants | 51 | 91.07% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
47 PNG files occupy 0.44MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/themes/default/images/ui-icons_666666_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
public/images/check_tmb.png | 1.57KB | 1.32KB | ▼ 16.07% |
public/css/themes/default/images/ui-bg_flat_65_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
public/css/themes/default/images/ui-bg_flat_0_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
public/css/themes/default/images/ui-icons_ff3333_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |