Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.88ms] Passed 4 tests
A check of server-side resources used by Property Hive Stamp Duty Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.50 ▼1.33 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.13 ▼16.85 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 40.87 ▼5.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.93 ▼14.65 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.79 ▼2.20 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Property Hive Stamp Duty Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.04 | 1.65 ▼0.16 | 41.77 ▼4.67 |
Dashboard /wp-admin | 2,203 ▲21 | 6.01 ▲0.11 | 101.72 ▼2.01 | 41.68 ▼1.71 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 36.72 ▼2.31 | 32.34 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.52 | 661.09 ▼45.22 | 58.89 ▲6.16 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.03 | 97.59 ▼5.00 | 45.48 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/property-hive-stamp-duty-calculator/templates/stamp-duty-calculator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/property-hive-stamp-duty-calculator/templates/stamp-duty-calculator-wales.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/property-hive-stamp-duty-calculator/templates/stamp-duty-calculator-commercial.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/property-hive-stamp-duty-calculator/templates/stamp-duty-calculator-scotland.php:3
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: property hive, stamp duty calculator, propertyhive, estate agent, estate agents...
property-hive-stamp-duty-calculator/propertyhive-stamp-duty-calculator.php 92% from 13 tests
The primary PHP file in "Property Hive Stamp Duty Calculator" version 1.0.17 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("property-hive-stamp-duty-calculator.php" instead of "propertyhive-stamp-duty-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected564 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 48 | 6 | 319 |
PHP | 5 | 84 | 37 | 225 |
CSS | 4 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 16.45KB | 6.18KB | ▼ 62.44% |
assets/icon-128x128.png | 8.51KB | 3.52KB | ▼ 58.63% |