Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/realty-portal-submit-property/realty-portal-submit-property.php+117
Use of undefined constant REALTY_PORTAL - assumed 'REALTY_PORTAL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.02ms] Passed 4 tests
An overview of server-side resources used by Realty Portal - Submit Property
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.49 ▼9.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.48 ▼3.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.26 ▼5.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.00 ▼10.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.35 ▼0.79 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Realty Portal - Submit Property: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.00 | 2.34 ▲0.61 | 49.14 ▲5.10 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.05 | 84.60 ▼10.43 | 42.45 ▲1.76 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 37.31 ▼5.80 | 34.97 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 22.96 ▲4.69 | 655.17 ▲34.08 | 51.26 ▼10.62 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.13 ▲0.02 | 99.84 ▼12.23 | 45.51 ▲2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-submit-property/includes/class-submit-property-shortcode.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: real-estate, property listings, property, property management, agent
realty-portal-submit-property/realty-portal-submit-property.php Passed 13 tests
"Realty Portal - Submit Property" version 0.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
The add-on helps to submit properties right in front-end. It works with any theme!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected831 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 150 | 187 | 570 |
LESS | 2 | 26 | 2 | 194 |
JavaScript | 1 | 12 | 11 | 66 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 17 | 77.27% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin