Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/realtyphp/lib/Realtyphp_installer.php+246
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.41MB] [CPU: ▼42.52ms] Passed 4 tests
Server-side resources used by RealtyPHP-WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.58 ▼35.26 |
Dashboard /wp-admin | 2.78 ▼0.53 | 14.51 ▼29.39 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 15.59 ▼26.39 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 16.12 ▼79.05 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 15.03 ▼15.23 |
Add new /wp-admin/admin.php?page=realtyphp_listings&action=create | 2.78 | 15.22 |
Settings /wp-admin/admin.php?page=realtyphp_settings&action=index | 2.78 | 17.76 |
/wp-admin/admin.php?page=Realtyphp_admin_home | 2.78 | 14.48 |
All listings /wp-admin/admin.php?page=realtyphp_listings&action=index | 2.78 | 16.50 |
RealtyPHP /wp-admin/admin.php?page=realtyphp_admin_home | 2.78 | 14.09 |
Server storage [IO: ▲1.02MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 87 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_realtyphp_countries |
wp_realtyphp_listings_pictures |
wp_realtyphp_offer |
wp_realtyphp_listings |
wp_realtyphp_state_province |
wp_realtyphp_property_types |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for RealtyPHP-WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲257 | 13.91 ▼0.50 | 7.16 ▲5.54 | 36.60 ▼4.28 |
Dashboard /wp-admin | 2,267 ▲78 | 5.24 ▲0.29 | 102.71 ▼29.37 | 41.97 ▼3.46 |
Posts /wp-admin/edit.php | 2,156 ▲64 | 2.32 ▲0.26 | 41.77 ▲6.12 | 34.60 ▲5.56 |
Add New Post /wp-admin/post-new.php | 1,559 ▲24 | 17.69 ▼5.69 | 617.22 ▼0.92 | 35.74 ▼23.25 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 4.56 ▲0.35 | 97.17 ▼4.57 | 42.36 ▼0.69 |
Add new /wp-admin/admin.php?page=realtyphp_listings&action=create | 1,930 | 6.99 | 143.92 | 60.68 |
Settings /wp-admin/admin.php?page=realtyphp_settings&action=index | 840 | 1.84 | 28.36 | 23.77 |
/wp-admin/admin.php?page=Realtyphp_admin_home | 876 | 1.84 | 29.36 | 25.39 |
All listings /wp-admin/admin.php?page=realtyphp_listings&action=index | 1,089 | 1.88 | 27.98 | 30.16 |
RealtyPHP /wp-admin/admin.php?page=realtyphp_admin_home | 879 | 1.91 | 29.57 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/realtyphp/lib/Bootstrap.php+114
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 41 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=realtyphp_admin_home
- > Warning in wp-content/plugins/realtyphp/application/views/realtyphp_admin_home/index.php+39
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=realtyphp_listings&action=create
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Realtyphp_listings::create() should not be called statically
- > GET request to /wp-admin/admin.php?page=realtyphp_settings&action=index
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Realtyphp_settings::index() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=realtyphp_admin_home
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Realtyphp_admin_home::index() should not be called statically
- > GET request to /wp-admin/admin.php?page=realtyphp_listings&action=index
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Realtyphp_listings::index() should not be called statically
SRP 50% 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
Please fix the following items
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/realtyphp/application/views/realtyphp_admin_home/index.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/realtyphp/application/views/realtyphp_settings/a_stpr.php on line 1
- > PHP Notice
Undefined variable: photos in wp-content/plugins/realtyphp/application/views/realtyphp_listings/a_uploaded_photos.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/realtyphp/lib/All_Listings_Admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/realtyphp/application/views/realtyphp_listings/update.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/realtyphp/realtyphp.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/realtyphp/application/views/realtyphp_listings/a_stpr.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/realtyphp/application/views/realtyphp_settings/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/realtyphp/application/views/realtyphp_settings/countries.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/realtyphp/application/views/realtyphp_settings/property_types.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=realtyphp_admin_home
- > Network (severe)
wp-content/plugins/realtyphp/js/WPLANG/validate_messages_WPLANG.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=realtyphp_admin_home
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/realtyphp/js/en_US/realtyphp-en_US-backend.js?ver=6.3.1:49:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=realtyphp_admin_home
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (You can see on the screenshot-1.png the frontend listings page.), #2 (On the screenshot-2.png you can see the page of an item.)
realtyphp/realtyphp.php Passed 13 tests
"RealtyPHP-WP" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Real Estate listing plugin for Wordpress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,937 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,359 | 4,157 | 6,596 |
JavaScript | 14 | 368 | 573 | 2,801 |
CSS | 2 | 34 | 1 | 360 |
PO File | 1 | 86 | 128 | 180 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 516)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 46.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 728.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 516.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 38 | 28.57% |
▷ Public methods | 131 | 98.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 35 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/galleria/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |
screenshot-1.png | 57.51KB | 23.67KB | ▼ 58.84% |
screenshot-2.png | 136.47KB | 53.05KB | ▼ 61.13% |