Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.19ms] Passed 4 tests
An overview of server-side resources used by {eac}SoftwareRegistry Subscriptions for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.17 ▼5.49 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.05 ▲2.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.78 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.75 ▼8.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.19 ▼0.68 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for {eac}SoftwareRegistry Subscriptions for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.58 ▼0.84 | 1.74 ▼0.25 | 40.91 ▼3.67 |
Dashboard /wp-admin | 2,206 ▲15 | 5.92 ▲1.03 | 101.56 ▼13.19 | 40.47 ▼8.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 36.22 ▲1.14 | 32.78 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.33 ▲0.16 | 683.48 ▲10.00 | 54.60 ▼5.70 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.27 ▲0.09 | 95.16 ▼10.30 | 42.55 ▼5.05 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function EarthAsylumConsulting\\is_admin() in wp-content/plugins/eacsoftwareregistry-subscription-webhooks/eacSoftwareRegistry_Subscription_Webhooks.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #2 in eacsoftwareregistry-subscription-webhooks/assets to your readme.txt
eacsoftwareregistry-subscription-webhooks/eacSoftwareRegistry_Subscription_Webhooks.php 77% from 13 tests
The main PHP file in "{eac}SoftwareRegistry Subscriptions for WooCommerce" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eacsoftwareregistry-subscription-webhooks.php" instead of "eacSoftwareRegistry_Subscription_Webhooks.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
Success! There were no dangerous files found in this plugin828 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 111 | 0 | 564 |
PHP | 1 | 47 | 123 | 264 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 36.36% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin