Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/realty-portal-agent/realty-portal-agent.php+179
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: ▼9.40ms] Passed 4 tests
An overview of server-side resources used by Realty Portal - Agent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.96 ▼0.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.38 ▼1.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.84 ▼4.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.93 ▼27.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.17 ▼4.41 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Realty Portal - Agent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.70 ▼0.69 | 1.61 ▼0.45 | 40.20 ▼0.16 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.22 | 95.02 ▼10.33 | 40.88 ▼1.02 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.05 | 32.20 ▼7.13 | 32.41 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.50 ▼5.60 | 657.96 ▼8.40 | 52.64 ▼4.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.03 | 99.09 ▼14.40 | 42.56 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/realty-portal-agent/templates/loop/agent-loop-end.php
- > /wp-content/plugins/realty-portal-agent/templates/loop/agent-loop-start.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-agent/includes/class-agent-shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/realty-portal-agent/realty-portal-agent-functions.php:359
- > PHP Fatal error
Uncaught Error: Call to undefined function rp_add_custom_field_type() in wp-content/plugins/realty-portal-agent/fields/agent_social/agent_social.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function rp_add_custom_field_type() in wp-content/plugins/realty-portal-agent/fields/agent_custom_field/agent_custom_field.php:75
- > PHP Fatal error
Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-agent/includes/class-member-shortcode.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Property Listings), #2 (Property Detail), #3 (Agent Listings), #4 (Agent Detail), #5 (Property Map)
realty-portal-agent/realty-portal-agent.php 92% from 13 tests
The main PHP script in "Realty Portal - Agent" version 0.3.9 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,953 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 833 | 838 | 3,149 |
CSS | 3 | 1 | 10 | 1,947 |
JavaScript | 4 | 106 | 66 | 459 |
LESS | 2 | 27 | 2 | 398 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 68 | 70.83% |
▷ Public methods | 94 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.08% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin