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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.26ms] Passed 4 tests
Server-side resources used by Woo Admin Licenses
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.46 ▼0.61 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.07 ▼2.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.95 ▲1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.12 ▼7.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.42 ▼6.53 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Admin Licenses
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.13 ▼0.23 | 1.85 ▼0.44 | 39.99 ▼4.50 |
Dashboard /wp-admin | 2,195 ▲27 | 5.56 ▼0.01 | 87.14 ▼6.91 | 39.61 ▼10.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 33.08 ▼3.50 | 35.06 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,534 ▲7 | 18.34 ▼4.47 | 635.99 ▼18.71 | 76.52 ▲22.42 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.22 ▲0.04 | 99.24 ▼2.43 | 44.42 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-admin-licenses/includes/class-wc-software-api.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Software_API_Request' not found in wp-content/plugins/woo-admin-licenses/includes/requests/class-wc-check-request.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/woo-admin-licenses/woo-admin-licenses.php:1599
- > PHP Fatal error
Uncaught Error: Class 'WC_Software_API_Request' not found in wp-content/plugins/woo-admin-licenses/includes/requests/class-wc-generate-key-request.php:3
- > PHP Warning
Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-admin-licenses/includes/class-wc-software-api.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WC_Software_API_Request' not found in wp-content/plugins/woo-admin-licenses/includes/requests/class-wc-deactivation-request.php:3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: license, add-on, woocommerce, software, licence...
woo-admin-licenses/woo-admin-licenses.php 85% from 13 tests
The entry point to "Woo Admin Licenses" version 1.2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,631 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 204 | 195 | 1,568 |
CSS | 2 | 0 | 0 | 62 |
JavaScript | 1 | 0 | 0 | 1 |
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.36 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 9.17 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donate.png | 5.61KB | 2.44KB | ▼ 56.47% |
images/help.png | 14.75KB | 0.56KB | ▼ 96.18% |