Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼144.24ms] Passed 4 tests
A check of server-side resources used by WP Tool
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 36.59 ▼0.92 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.68 ▼3.42 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 45.18 ▼3.87 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 99.69 ▼565.92 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 38.26 ▼3.74 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Tool
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,739 ▲143 | 17.47 ▲1.90 | 27.08 ▲17.30 | 51.19 ▼5.85 |
Dashboard /wp-admin | 2,993 ▲63 | 5.86 ▼0.09 | 145.28 ▼6.26 | 126.06 ▲17.81 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.69 ▲0.02 | 67.07 ▼2.73 | 99.33 ▲7.58 |
Add New Post /wp-admin/post-new.php | 1,696 ▲81 | 18.20 ▼3.30 | 387.45 ▲104.52 | 106.93 ▼5.01 |
Media Library /wp-admin/upload.php | 1,830 ▲79 | 5.03 ▲0.05 | 162.54 ▲1.41 | 132.82 ▲8.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-tool/ajax/WeatherByLocData.php
- > /wp-content/plugins/wp-tool/ajax/SearchByLocData.php
- > /wp-content/plugins/wp-tool/ajax/DistanceByLocData.php
- 1× 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/wp-tool/index.php:31
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #6 in wp-tool/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wp-tool/index.php 85% from 13 tests
The entry point to "WP Tool" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-tool.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin672 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 74 | 113 | 661 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot1-WeatherForecastings.png | 31.75KB | 9.81KB | ▼ 69.08% |
assets/Screenshot2-CurrencyConverter.png | 18.30KB | 6.32KB | ▼ 65.47% |
assets/Screenshot3-DomainInfo.png | 19.84KB | 6.60KB | ▼ 66.72% |
assets/Screenshot4-FindDistance.png | 35.57KB | 11.98KB | ▼ 66.31% |
assets/Screenshot6-Shortcode.png | 36.25KB | 12.96KB | ▼ 64.24% |