84% ere-colors

Code Review | ERE Colors - Essential Real Estate Add-On

WordPress plugin ERE Colors - Essential Real Estate Add-On scored84%from 54 tests.

About plugin

  • Plugin page: ere-colors
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Feb 22, 2019
  • Number of updates: 12
  • Update frequency: every 48.8 days
  • Top authors: g5theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /16,720 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.29ms] Passed 4 tests

A check of server-side resources used by ERE Colors - Essential Real Estate Add-On
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.91 ▲1.33
Dashboard /wp-admin3.35 ▲0.0146.14 ▼17.59
Posts /wp-admin/edit.php3.41 ▲0.0549.99 ▲0.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.02 ▼4.40
Media Library /wp-admin/upload.php3.28 ▲0.0534.22 ▼8.13

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ERE Colors - Essential Real Estate Add-On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.58 ▼1.171.56 ▼0.1539.37 ▼4.02
Dashboard /wp-admin2,206 ▲245.91 ▲0.06106.30 ▼4.0343.65 ▲0.75
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0339.45 ▲3.0735.18 ▼2.35
Add New Post /wp-admin/post-new.php1,536 ▲1523.02 ▼0.11593.39 ▼92.4455.28 ▼10.31
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0296.29 ▼10.5441.17 ▼5.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ere-colors/ere-colors.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ere-colors === )
You can take inspiration from this readme.txt

ere-colors/ere-colors.php Passed 13 tests

The primary PHP file in "ERE Colors - Essential Real Estate Add-On" version 1.4 is used by WordPress to initiate all plugin functionality
57 characters long description:
Customize the colors of the Essential Real Estate plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected509 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21055497
Markdown15012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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