Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼321.99ms] Passed 4 tests
Server-side resources used by Accumulus Subscription Commerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.37 | 56.64 ▲1.63 |
Dashboard /wp-admin | 3.46 ▲0.06 | 23.63 ▼10.53 |
Posts /wp-admin/edit.php | 3.46 ▼0.17 | 20.21 ▼16.52 |
Add New Post /wp-admin/post-new.php | 3.46 ▼3.50 | 19.66 ▼1,247.46 |
Media Library /wp-admin/upload.php | 3.46 ▲0.16 | 19.50 ▼13.44 |
Accumulus /wp-admin/options-general.php?page=accumulus | 3.55 | 36.86 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 506 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accumulus Subscription Commerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.23 ▲0.55 | 6.24 ▼0.14 | 2.31 ▼0.58 |
Dashboard /wp-admin | 2,897 ▲43 | 6.22 ▲0.02 | 121.95 ▼16.75 | 157.30 ▼8.27 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.24 ▲0.00 | 65.20 ▼2.72 | 141.96 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,693 ▼18 | 21.26 ▲0.49 | 458.65 ▲11.51 | 161.74 ▲5.66 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.49 ▼0.03 | 138.18 ▼11.36 | 188.73 ▼11.01 |
Accumulus /wp-admin/options-general.php?page=accumulus | 1,206 | 2.43 | 125.11 | 174.64 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/accumulus-subscription-commerce/settings.php+259
Undefined index: page
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 64× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/Response.php:10
- > 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: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/league/oauth2-client/src/Grant/ClientCredentials.php:22
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Provider\\Exception\\IdentityProviderException' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/league/oauth2-accumulus/src/Provider/Exception/AccumulusIdentityProviderException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.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/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/accumulus-subscription-commerce/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== accumulus-subscription-commerce ===
) - Screenshots: Please add images for these screenshots: #1 (Accumulus Subscription Commerce Signup Widget for Wordpress), #2 (Accumulus WordPress Settings)
accumulus-subscription-commerce/accumulus.php 92% from 13 tests
The main file in "Accumulus Subscription Commerce" v. 2.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected29,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
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 PNG files occupy 0.44MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 153.97KB | 43.02KB | ▼ 72.06% |
public/css/themes/default/images/ui-bg_flat_55_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
public/css/themes/default/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
public/css/themes/default/images/ui-bg_flat_25_acd0fe_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
public/css/themes/default/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |