Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.15ms] Passed 4 tests
Server-side resources used by Property Hive Mortgage Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.16 ▲2.12 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.80 ▼4.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.50 ▼0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.87 ▼14.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.18 ▲5.73 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Property Hive Mortgage Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.40 | 1.76 ▲0.13 | 46.55 ▲5.75 |
Dashboard /wp-admin | 2,206 ▲21 | 5.79 ▲0.91 | 95.84 ▼4.25 | 38.89 ▼3.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.02 | 33.32 ▼5.19 | 34.38 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.00 ▲5.40 | 671.35 ▲86.34 | 66.24 ▲19.84 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.20 ▼0.09 | 97.05 ▼6.53 | 41.78 ▼2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
property-hive-mortgage-calculator/propertyhive-mortgage-calculator.php 92% from 13 tests
Analyzing the main PHP file in "Property Hive Mortgage Calculator" version 1.0.4
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("property-hive-mortgage-calculator.php" instead of "propertyhive-mortgage-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin149 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 44 | 97 |
JavaScript | 1 | 6 | 0 | 47 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ 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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 8.59KB | 3.45KB | ▼ 59.90% |
assets/icon-256x256.png | 16.73KB | 6.11KB | ▼ 63.46% |