Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.72ms] Passed 4 tests
This is a short check of server-side resources used by Real Estate Fix & Flip Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.46 ▼8.77 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.86 ▼4.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.70 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.13 ▼2.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.02 ▲2.13 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_faf_calculator_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Real Estate Fix & Flip Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.77 ▼0.54 | 6.10 ▲4.05 | 41.65 ▼2.20 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.05 | 100.33 ▼30.51 | 41.83 ▼14.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 37.41 ▲1.49 | 34.51 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.79 ▼0.31 | 660.99 ▼12.86 | 50.06 ▼9.65 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.00 | 96.34 ▼9.70 | 42.57 ▼5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_faf_calculator_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fix-and-flip-calculator/fixandflip.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fix-and-flip-calculator/includes/widget.php:2
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: property investment calculator, real estate calculator, renovate and sell calculator
fix-and-flip-calculator/fixandflip.php 85% from 13 tests
The main PHP file in "Real Estate Fix & Flip Calculator" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0.1" instead of "5.7")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fix-and-flip-calculator.php" instead of "fixandflip.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 plugin22,520 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 131 | 30 | 13,109 |
CSS | 3 | 1,218 | 12 | 9,149 |
PHP | 3 | 49 | 19 | 262 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.78MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.PNG | 80.52KB | 42.19KB | ▼ 47.61% |
assets/screenshot-4.png | 65.21KB | 27.61KB | ▼ 57.67% |
assets/screenshot-3.png | 51.03KB | 24.62KB | ▼ 51.77% |
assets/screenshot-2.png | 53.56KB | 23.64KB | ▼ 55.86% |
assets/screenshot-1.png | 27.74KB | 14.09KB | ▼ 49.22% |