Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼321.24ms] Passed 4 tests
A check of server-side resources used by BZ9 Webmaster Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.14 | 60.81 ▲1.75 |
Dashboard /wp-admin | 3.35 ▼0.05 | 24.52 ▼15.70 |
Posts /wp-admin/edit.php | 3.41 ▼0.23 | 26.27 ▼14.77 |
Add New Post /wp-admin/post-new.php | 6.15 ▼0.82 | 83.80 ▼1,248.86 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 23.74 ▼5.64 |
BZ9 Tutorials /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_tutorials | 3.38 | 24.59 |
Add New BZ9 Tool /wp-admin/post-new.php?post_type=bz9_tools | 3.68 | 39.02 |
Setup BZ9 Tools /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools | 3.38 | 24.70 |
Saved BZ9 Tools /wp-admin/edit.php?post_type=bz9_tools | 3.48 | 30.99 |
Login To BZ9 /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_account | 3.38 | 26.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for BZ9 Webmaster Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲96 | 16.18 ▲0.19 | 7.04 ▲1.11 | 2.50 ▲0.22 |
Dashboard /wp-admin | 2,946 ▲85 | 6.17 ▼0.02 | 120.12 ▼13.40 | 176.23 ▲15.08 |
Posts /wp-admin/edit.php | 2,746 ▲55 | 3.12 ▼0.11 | 72.04 ▲6.23 | 176.36 ▲28.71 |
Add New Post /wp-admin/post-new.php | 1,703 ▲42 | 18.19 ▲2.61 | 420.55 ▼24.98 | 187.09 ▲32.52 |
Media Library /wp-admin/upload.php | 1,755 ▲57 | 5.55 ▲0.04 | 123.95 ▼13.46 | 248.29 ▲65.53 |
BZ9 Tutorials /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_tutorials | 3,187 | 9.14 | 358.05 | 205.71 |
Add New BZ9 Tool /wp-admin/post-new.php?post_type=bz9_tools | 1,959 | 3.88 | 77.87 | 217.22 |
Setup BZ9 Tools /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools | 4,265 | 12.18 | 300.33 | 173.26 |
Saved BZ9 Tools /wp-admin/edit.php?post_type=bz9_tools | 1,428 | 3.16 | 56.92 | 116.81 |
Login To BZ9 /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_account | 1,053 | 2.41 | 54.91 | 111.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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)
Good news, no errors were detected
SRP 50% 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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bz9-webmaster-tools/bz9_webmaster_tools.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/bz9-webmaster-tools/form.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyC0jP7teT6j50zBukQfVZHtUL59O0tP-fE 65:174 "Geocoding Service: You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started"
- > GET request to /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_account
- > Network (severe)
http://bz9.com/images/login.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bz9_tools&page=bz9_tools_account
- > Network (severe)
http://bz9.com/images/open.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: tools, shortcode, wordpress, webmaster, bz9
bz9-webmaster-tools/bz9_webmaster_tools.php 85% from 13 tests
This is the main PHP file of "BZ9 Webmaster Tools" version 1.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bz9-webmaster-tools.php" instead of "bz9_webmaster_tools.php")
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 plugin676 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 120 | 502 |
PO File | 1 | 42 | 43 | 110 |
JavaScript | 1 | 1 | 0 | 34 |
CSS | 1 | 1 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/bz9tools.png | 0.91KB | 0.87KB | ▼ 4.73% |
images/bz9tools.png | 0.91KB | 0.87KB | ▼ 4.73% |
images/bz9tools32.png | 2.08KB | 1.66KB | ▼ 20.46% |