Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.88MB] [CPU: ▼134.47ms] Passed 4 tests
Server-side resources used by PluginPass - WordPress PRO Plugin/Theme Licensing (Public Alpha)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.89 | 38.34 ▲7.07 |
Dashboard /wp-admin | 3.95 ▲0.89 | 50.93 ▲9.05 |
Posts /wp-admin/edit.php | 3.99 ▲0.88 | 48.39 ▼3.21 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.87 | 95.34 ▼541.77 |
Media Library /wp-admin/upload.php | 3.89 ▲0.89 | 30.99 ▲0.02 |
PluginPass /wp-admin/options-general.php?page=pluginpass | 4.17 | 33.72 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 221 new files
Database: 1 new table, no new options
New tables |
---|
wp_pluginpass_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PluginPass - WordPress PRO Plugin/Theme Licensing (Public Alpha)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲193 | 16.27 ▲0.40 | 13.66 ▲5.14 | 45.18 ▼6.09 |
Dashboard /wp-admin | 2,991 ▲60 | 6.21 ▲0.32 | 140.30 ▲2.05 | 105.67 ▼4.67 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 3.08 ▲0.38 | 62.92 ▼5.97 | 89.16 ▲4.41 |
Add New Post /wp-admin/post-new.php | 1,631 ▼41 | 22.03 ▲3.15 | 271.26 ▼90.45 | 125.05 ▲11.24 |
Media Library /wp-admin/upload.php | 1,828 ▲21 | 5.35 ▲0.32 | 127.21 ▼18.05 | 116.18 ▼5.90 |
PluginPass /wp-admin/options-general.php?page=pluginpass | 1,331 | 2.49 | 58.54 | 63.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/www/index.php
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/inc/frontend/views/html-pluginpass-frontend-display.php
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/scripts/bump_minor_version.php
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/scripts/bump_patch_version.php
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/scripts/v4_migration.php
- > /wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/scripts/bump_major_version.php
- 158× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/get_pages.php on line 2
- > PHP Warning
require(wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/progress_advanced.php on line 2
- > PHP Warning
require(wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/post_json.php on line 2
- > PHP Warning
require(wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/head.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/memory_leak_test_curl.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/proxy.php on line 2
- > PHP Warning
require(wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/progress.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'NetLicensing\\BaseEntity' not found in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/labs64/netlicensingclient-php/entity/Product.php:62
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/php-curl-class/php-curl-class/examples/download_file_with_callback.php on line 2
- > PHP Fatal error
Trait 'NetLicensing\\Properties' not found in wp-content/plugins/pluginpass-pro-plugintheme-licensing/vendor/labs64/netlicensingclient-php/entity/BaseEntity.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (PluginPass Overview), #2 (PluginPass Settings)
pluginpass-pro-plugintheme-licensing/pluginpass.php 77% from 13 tests
The primary PHP file in "PluginPass - WordPress PRO Plugin/Theme Licensing (Public Alpha)" version 0.9.10 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("pluginpass-pro-plugintheme-licensing.php" instead of "pluginpass.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin15,947 lines of code in 199 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 164 | 2,729 | 5,150 | 14,000 |
XML | 4 | 49 | 2 | 702 |
Bourne Shell | 10 | 67 | 60 | 384 |
Markdown | 7 | 86 | 0 | 378 |
JSON | 4 | 0 | 0 | 242 |
YAML | 3 | 7 | 0 | 81 |
CSS | 2 | 10 | 10 | 63 |
Dockerfile | 2 | 14 | 21 | 49 |
JavaScript | 3 | 11 | 58 | 48 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 72 | |
▷ Abstract classes | 1 | 1.39% |
▷ Concrete classes | 71 | 98.61% |
▷ Final classes | 0 | 0.00% |
Methods | 668 | |
▷ Static methods | 73 | 10.93% |
▷ Public methods | 582 | 87.13% |
▷ Protected methods | 51 | 7.63% |
▷ Private methods | 35 | 5.24% |
Functions | 268 | |
▷ Named functions | 14 | 5.22% |
▷ Anonymous functions | 254 | 94.78% |
Constants | 95 | |
▷ Global constants | 9 | 9.47% |
▷ Class constants | 86 | 90.53% |
▷ Public constants | 86 | 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
7 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 43.82KB | 14.44KB | ▼ 67.05% |
assets/banner-1544x500.png | 91.88KB | 30.27KB | ▼ 67.05% |
assets/icon-256x256.png | 2.16KB | 1.47KB | ▼ 31.86% |
assets/icon-128x128.png | 0.50KB | 0.24KB | ▼ 52.16% |
screenshot-2.png | 206.23KB | 50.87KB | ▼ 75.33% |