84% ere-recently-viewed

Code Review | ERE Recently Viewed - Essential Real Estate Add-On

WordPress plugin ERE Recently Viewed - Essential Real Estate Add-On scored 84% from 54 tests.

About plugin

  • Plugin page: ere-recently-viewed
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3
  • WordPress version: 5.8.1
  • First release: Aug 3, 2018
  • Latest release: Apr 28, 2019
  • Number of updates: 7
  • Update frequency: every 38.4 days
  • Top authors: g5theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 13,816 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.84 ▲12.62
Dashboard /wp-admin3.11 ▲0.0658.77 ▲19.14
Posts /wp-admin/edit.php3.16 ▲0.0650.24 ▲4.55
Add New Post /wp-admin/post-new.php5.48 ▲0.0494.10 ▼543.48
Media Library /wp-admin/upload.php3.05 ▲0.0531.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8516.25 ▲0.458.35 ▲0.2147.81 ▼2.83
Dashboard /wp-admin2,967 ▲365.94 ▼0.12157.98 ▲12.82120.43 ▲6.88
Posts /wp-admin/edit.php2,739 ▲32.70 ▲0.0178.75 ▲15.0086.30 ▲1.16
Add New Post /wp-admin/post-new.php1,683 ▼018.54 ▼0.23364.65 ▲5.65112.01 ▼1.16
Media Library /wp-admin/upload.php1,804 ▼65.04 ▲0.03139.70 ▼19.14114.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

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


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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.36
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity9.75
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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