Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼132.64ms] Passed 4 tests
Server-side resources used by ERE Recently Viewed - Essential Real Estate Add-On
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 33.84 ▲12.62 |
Dashboard /wp-admin | 3.11 ▲0.06 | 58.77 ▲19.14 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 50.24 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 94.10 ▼543.48 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 31.17 ▼4.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ere_widget_recently_viewed |
Browser metrics Passed 4 tests
A check of browser resources used by ERE Recently Viewed - Essential Real Estate Add-On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 16.25 ▲0.45 | 8.35 ▲0.21 | 47.81 ▼2.83 |
Dashboard /wp-admin | 2,967 ▲36 | 5.94 ▼0.12 | 157.98 ▲12.82 | 120.43 ▲6.88 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▲0.01 | 78.75 ▲15.00 | 86.30 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.54 ▼0.23 | 364.65 ▲5.65 | 112.01 ▼1.16 |
Media Library /wp-admin/upload.php | 1,804 ▼6 | 5.04 ▲0.03 | 139.70 ▼19.14 | 114.45 ▼6.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_ere_widget_recently_viewed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ere-recently-viewed/ere-recently-viewed.php:27
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is required in ere-recently-viewed/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ere-recently-viewed ===
)
ere-recently-viewed/ere-recently-viewed.php Passed 13 tests
The principal PHP file in "ERE Recently Viewed - Essential Real Estate Add-On" v. 1.3 is loaded by WordPress automatically on each request
126 characters long description:
ERE Recently Viewed plugin shows properties viewed by a visitor as a responsive sidebar widget or in post/page using shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected252 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 29 | 233 |
Markdown | 1 | 3 | 0 | 10 |
CSS | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected