Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.27ms] Passed 4 tests
Analyzing server-side resources used by GetRETS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 47.49 ▲8.27 |
Dashboard /wp-admin | 3.54 ▲0.19 | 48.21 ▼15.17 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 54.55 ▼1.14 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.86 ▼15.98 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.64 ▲3.23 |
GetRETS /wp-admin/options-general.php?page=getrets-admin-settings | 3.37 | 33.32 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_getretssearchwidget |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
GetRETS_options |
theysaidso_admin_options |
GetRETS_version |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for GetRETS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.74 ▼0.90 | 9.25 ▲7.65 | 41.18 ▲1.65 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.04 | 79.94 ▼11.84 | 37.64 ▼5.64 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.06 | 38.46 ▲2.96 | 35.75 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 22.76 ▼0.43 | 660.00 ▼14.54 | 60.72 ▼6.53 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▲0.06 | 96.71 ▼10.25 | 44.55 ▼6.01 |
GetRETS /wp-admin/options-general.php?page=getrets-admin-settings | 929 | 2.02 | 25.35 | 38.91 |
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
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- GetRETS_options
- widget_getretssearchwidget
- GetRETS_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/getrets/views/frontend/content.php
- > /wp-content/plugins/getrets/views/admin/instructions.php
- > /wp-content/plugins/getrets/getrets.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: listing in wp-content/plugins/getrets/views/frontend/content.php on line 41
- > PHP Notice
Undefined variable: listing in wp-content/plugins/getrets/views/frontend/content.php on line 92
- > PHP Notice
Trying to get property 'photoCount' of non-object in wp-content/plugins/getrets/views/frontend/content.php on line 92
- > PHP Notice
Trying to get property 'baths' of non-object in wp-content/plugins/getrets/views/frontend/content.php on line 36
- > PHP Notice
Trying to get property 'features' of non-object in wp-content/plugins/getrets/views/frontend/content.php on line 58
- > PHP Notice
Undefined variable: listing in wp-content/plugins/getrets/views/frontend/content.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/getrets/views/frontend/search.php:1
- > PHP Notice
Undefined variable: description in wp-content/plugins/getrets/views/frontend/content.php on line 56
- > PHP Notice
Undefined variable: instance in wp-content/plugins/getrets/views/admin/searchWidget.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/getrets/views/admin/settings.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== getrets ===
) - Donate link: Please fix this invalid URI: ""
getrets/getrets.php Passed 13 tests
The main PHP file in "GetRETS" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
140 characters long description:
Instantly add real estate listing data to your website. Allows listings, from multiple feeds, to appear within your site as native content.
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
Everything looks great! No dangerous files found in this plugin1,998 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 223 | 170 | 1,087 |
Markdown | 3 | 295 | 0 | 475 |
HTML | 1 | 105 | 0 | 207 |
LESS | 2 | 23 | 10 | 97 |
CSS | 2 | 0 | 11 | 89 |
JavaScript | 1 | 11 | 0 | 43 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 87 | |
▷ Static methods | 12 | 13.79% |
▷ Public methods | 70 | 80.46% |
▷ Protected methods | 2 | 2.30% |
▷ Private methods | 15 | 17.24% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.50MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 8.35KB | 4.13KB | ▼ 50.49% |
assets/screenshot-5.png | 88.16KB | 36.59KB | ▼ 58.49% |
assets/screenshot-1.png | 104.34KB | 40.31KB | ▼ 61.36% |
assets/banner-1544x500.png | 131.09KB | 53.68KB | ▼ 59.05% |
assets/screenshot-4.png | 93.34KB | 34.93KB | ▼ 62.57% |