Benchmarks
Plugin footprint 65% from 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.69MB] [CPU: ▼6.44ms] Passed 4 tests
This is a short check of server-side resources used by WP License Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 40.92 ▼9.39 |
Dashboard /wp-admin | 4.03 ▲0.69 | 59.41 ▼6.47 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 55.61 ▲5.32 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 91.02 ▼12.92 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 41.31 ▲3.02 |
Licenses /wp-admin/admin.php?page=wp-licenses | 3.86 | 39.16 |
Add new /wp-admin/admin.php?page=wp-licenses-new | 3.87 | 35.93 |
License Manager Settings /wp-admin/options-general.php?page=wp-license-settings | 3.85 | 36.98 |
All Products /wp-admin/edit.php?post_type=wplm_product | 4.00 | 43.59 |
Add New /wp-admin/post-new.php?post_type=wplm_product | 4.07 | 53.04 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 632 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_product_licenses |
New WordPress options |
---|
wp-license-manager_plugin-version |
wp-license-manager-db-version |
wp-license-manager-rewrite-rules-version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP License Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 14.14 ▼0.23 | 5.04 ▲3.11 | 43.74 ▼0.39 |
Dashboard /wp-admin | 2,276 ▲88 | 4.90 ▼0.95 | 105.44 ▼1.04 | 39.40 ▼8.15 |
Posts /wp-admin/edit.php | 2,159 ▲67 | 2.04 ▲0.05 | 39.06 ▼0.85 | 36.18 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,576 ▲36 | 20.86 ▼2.30 | 642.85 ▲39.98 | 51.70 ▼0.62 |
Media Library /wp-admin/upload.php | 1,452 ▲61 | 4.26 ▼0.06 | 100.02 ▲1.84 | 42.60 ▼2.72 |
Licenses /wp-admin/admin.php?page=wp-licenses | 948 | 1.70 | 24.73 | 26.51 |
Add new /wp-admin/admin.php?page=wp-licenses-new | 927 | 2.04 | 25.70 | 27.11 |
License Manager Settings /wp-admin/options-general.php?page=wp-license-settings | 855 | 1.71 | 26.64 | 27.57 |
All Products /wp-admin/edit.php?post_type=wplm_product | 1,140 | 1.94 | 30.88 | 31.02 |
Add New /wp-admin/post-new.php?post_type=wplm_product | 2,387 | 7.69 | 166.38 | 64.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_product_licenses
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- wp-license-manager-db-version
- wp-license-manager_plugin-version
- widget_recent-comments
- wp-license-manager-rewrite-rules-version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-license-settings
- > Notice in wp-content/plugins/wp-license-manager/admin/class-wp-license-manager-admin.php+390
Trying to access array offset on value of type bool
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
The following issues need your attention
- 484× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\ToArrayInterface' not found in wp-content/plugins/wp-license-manager/lib/aws/Guzzle/Plugin/Cookie/Cookie.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Exception\\Parser\\AbstractJsonExceptionParser' not found in wp-content/plugins/wp-license-manager/lib/aws/Aws/Common/Exception/Parser/JsonRestExceptionParser.php:24
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/wp-license-manager/lib/aws/Aws/S3/Model/ClearBucket.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Service\\Resource\\ResourceIteratorFactoryInterface' not found in wp-content/plugins/wp-license-manager/lib/aws/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/wp-license-manager/lib/aws/Aws/S3/Exception/UnresolvableGrantByEmailAddressException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/wp-license-manager/lib/aws/Monolog/Processor/MemoryUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Service\\ConfigLoaderInterface' not found in wp-content/plugins/wp-license-manager/lib/aws/Guzzle/Service/CachingConfigLoader.php:10
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Log\\AbstractLogAdapter' not found in wp-content/plugins/wp-license-manager/lib/aws/Guzzle/Log/Zf2LogAdapter.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-license-manager/lib/aws/Symfony/Component/EventDispatcher/Tests/ContainerAwareEventDispatcherTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Common\\Exception\\AwsExceptionInterface' not found in wp-content/plugins/wp-license-manager/lib/aws/Aws/Common/Exception/LogicException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: license management, licence, updates, license
wp-license-manager/wp-license-manager.php Passed 13 tests
This is the main PHP file of "WP License Manager" version 0.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Turn your WordPress site into a license manager for WordPress plugins, themes, and other downloadable products.
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
Everything looks great! No dangerous files found in this plugin37,574 lines of code in 620 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 612 | 7,757 | 22,995 | 36,576 |
Markdown | 4 | 193 | 0 | 987 |
JavaScript | 2 | 4 | 28 | 11 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 77 | |
Traits | 2 | |
Classes | 561 | |
▷ Abstract classes | 38 | 6.77% |
▷ Concrete classes | 523 | 93.23% |
▷ Final classes | 2 | 0.38% |
Methods | 3,035 | |
▷ Static methods | 263 | 8.67% |
▷ Public methods | 2,438 | 80.33% |
▷ Protected methods | 476 | 15.68% |
▷ Private methods | 121 | 3.99% |
Functions | 75 | |
▷ Named functions | 2 | 2.67% |
▷ Anonymous functions | 73 | 97.33% |
Constants | 309 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 309 | 100.00% |
▷ Public constants | 309 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.29MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 38.09KB | 9.73KB | ▼ 74.46% |
assets/screenshot-4.png | 86.23KB | 25.53KB | ▼ 70.39% |
assets/screenshot-1.png | 91.34KB | 28.24KB | ▼ 69.09% |
assets/screenshot-3.png | 84.73KB | 25.77KB | ▼ 69.59% |