Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼145.37ms] Passed 4 tests
Server-side resources used by Check User Postcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 36.69 ▲0.81 |
Dashboard /wp-admin | 3.10 ▲0.05 | 47.36 ▲2.34 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 42.95 ▲1.62 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 87.31 ▼575.67 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 26.36 ▼8.25 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 4 new options
New WordPress options |
---|
cupp21_2ndmessage |
cupp21_1stmessage |
cupp21_3rdmessage |
cupp21_postcodes |
Browser metrics Passed 4 tests
A check of browser resources used by Check User Postcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲126 | 15.86 ▼0.24 | 8.14 ▼3.98 | 49.06 ▼1.51 |
Dashboard /wp-admin | 2,985 ▲52 | 5.89 ▼0.16 | 154.96 ▼24.05 | 101.69 ▼15.33 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.70 ▼0.01 | 67.14 ▲3.92 | 93.27 ▲10.95 |
Add New Post /wp-admin/post-new.php | 1,693 ▲78 | 18.73 ▼2.69 | 381.30 ▲88.20 | 109.36 ▲3.68 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.05 ▲0.01 | 147.10 ▼13.25 | 113.01 ▼18.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: local, check, tradesmen, postcode, user
check-user-postcode/checkuserpostcode.php 77% from 13 tests
Analyzing the main PHP file in "Check User Postcode" version 3.0.1
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.2.2" instead of "5.2")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("check-user-postcode.php" instead of "checkuserpostcode.php")
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
Success! There were no dangerous files found in this plugin322 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 59 | 322 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected