Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.81ms] Passed 4 tests
This is a short check of server-side resources used by BizLibrary
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.57 ▲0.86 |
Dashboard /wp-admin | 3.48 ▲0.14 | 74.98 ▲6.90 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.32 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.01 ▼8.30 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 37.01 ▼1.32 |
BizLibrary /wp-admin/options-general.php?page=bizlibrary | 3.27 | 33.09 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BizLibrary
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.75 ▲0.35 | 2.00 ▼0.08 | 41.81 ▼0.77 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.02 | 91.37 ▼10.97 | 43.22 ▲0.41 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.04 ▲0.03 | 40.01 ▲4.96 | 37.97 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,552 ▲20 | 23.22 ▼0.08 | 636.91 ▼26.66 | 51.58 ▼2.38 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.06 | 111.28 ▲2.77 | 46.86 ▲0.69 |
BizLibrary /wp-admin/options-general.php?page=bizlibrary | 934 | 2.03 | 23.15 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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)
Almost there, just fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bizlibrary
- > Notice in wp-content/plugins/bizlibrary/bizlibrary.php+408
Trying to access array offset on value of type bool
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 items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bizlibrary/bizlibrary.php:33
- > PHP Fatal error
require_once(): Failed opening required 'File/ASN1.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizlibrary/phpseclib/X509.php on line 51
- > PHP Warning
require_once(Math/BigInteger.php): failed to open stream: No such file or directory in wp-content/plugins/bizlibrary/phpseclib/ASN1.php on line 48
- > PHP Warning
require_once(Math/BigInteger.php): failed to open stream: No such file or directory in wp-content/plugins/bizlibrary/phpseclib/SSH1.php on line 75
- > PHP Warning
require_once(File/ASN1.php): failed to open stream: No such file or directory in wp-content/plugins/bizlibrary/phpseclib/X509.php on line 51
- > PHP Fatal error
require_once(): Failed opening required 'Math/BigInteger.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizlibrary/phpseclib/SSH1.php on line 75
- > PHP Fatal error
require_once(): Failed opening required 'Math/BigInteger.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizlibrary/phpseclib/ASN1.php on line 48
- > PHP Fatal error
require_once(): Failed opening required 'Math/BigInteger.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizlibrary/phpseclib/RSA.php on line 76
- > PHP Warning
require_once(Math/BigInteger.php): failed to open stream: No such file or directory in wp-content/plugins/bizlibrary/phpseclib/RSA.php on line 76
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== bizlibrary ===
)
bizlibrary/bizlibrary.php 92% from 13 tests
The main file in "BizLibrary" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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
Code Analysis 97% from 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 plugin13,640 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 2,582 | 8,528 | 13,640 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 164.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 433.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 396 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 396 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 161 | |
▷ Global constants | 161 | 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
There were not PNG files found in your plugin