Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼148.51ms] Passed 4 tests
Analyzing server-side resources used by Albums WooCommerce Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.57 ▲11.92 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.38 ▼5.35 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.36 ▼6.63 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 97.04 ▼573.38 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 27.76 ▼8.66 |
Server storage [IO: ▲0.08MB] [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: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Albums WooCommerce Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.93 ▲0.31 | 13.59 ▲3.91 | 52.27 ▲0.75 |
Dashboard /wp-admin | 2,980 ▲46 | 5.92 ▼0.02 | 154.53 ▼4.25 | 121.47 ▼0.90 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.72 ▲0.01 | 69.56 ▼1.64 | 101.96 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 18.56 ▼0.19 | 409.88 ▲3.47 | 116.81 ▲0.38 |
Media Library /wp-admin/upload.php | 1,820 ▲72 | 5.03 ▲0.00 | 160.44 ▲8.70 | 128.86 ▲6.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php:12
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 9
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 10
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 9
- > PHP Notice
Undefined variable: variation in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 9
- > PHP Notice
Undefined variable: variation in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 10
- > PHP Notice
Undefined variable: variation in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 10
- > PHP Notice
Undefined variable: variation in wp-content/plugins/album-products-for-woocommerce/includes/admin/templates/html-admin-album-variable.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/album-products-for-woocommerce/templates/checkout/download_album.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/album-products-for-woocommerce/includes/core/class-widget.php:4
- > 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 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Contributors: Plugin contributors field is missing
album-products-for-woocommerce/album-products.php 85% from 13 tests
The main PHP file in "Albums WooCommerce Plugin" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("album-products-for-woocommerce.php" instead of "album-products.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 plugin1,755 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 569 | 239 | 1,364 |
CSS | 2 | 1 | 0 | 190 |
JavaScript | 2 | 56 | 1 | 141 |
SVG | 2 | 0 | 0 | 60 |
PHP code Passed 2 tests
This is a short overview 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.30 |
Average class complexity | 17.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.05% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected