84% simple-listings-genesis

Code Review | Simple Listings for Genesis

WordPress plugin Simple Listings for Genesis scored84%from 54 tests.

About plugin

  • Plugin page: simple-listings-g...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Sep 2, 2014
  • Latest release: Nov 6, 2017
  • Number of updates: 20
  • Update frequency: every 58.1 days
  • Top authors: littler.chicken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼0.62ms] Passed 4 tests

Server-side resources used by Simple Listings for Genesis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4943.30 ▲4.92
Dashboard /wp-admin3.81 ▲0.4647.49 ▼12.60
Posts /wp-admin/edit.php3.86 ▲0.5051.50 ▲4.80
Add New Post /wp-admin/post-new.php6.33 ▲0.4495.99 ▲0.40
Media Library /wp-admin/upload.php3.67 ▲0.4437.45 ▲5.44
Listing Status /wp-admin/edit-tags.php?taxonomy=status&post_type=listing3.6634.62
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.7431.40
All Listings /wp-admin/edit.php?post_type=listing3.7739.15
New Listing /wp-admin/post-new.php?post_type=listing3.8548.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Listings for Genesis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10714.36 ▲0.091.73 ▲0.1242.36 ▲1.61
Dashboard /wp-admin2,256 ▲765.65 ▼0.0687.61 ▲0.4844.50 ▲0.70
Posts /wp-admin/edit.php2,173 ▲732.16 ▲0.1643.12 ▲4.6539.51 ▲5.22
Add New Post /wp-admin/post-new.php1,586 ▲5718.04 ▼5.17603.49 ▼83.7968.03 ▲11.34
Media Library /wp-admin/upload.php1,469 ▲694.24 ▲0.05101.24 ▲7.1447.57 ▲5.28
Listing Status /wp-admin/edit-tags.php?taxonomy=status&post_type=listing1,3152.3026.6434.08
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0052.0626.6627.95
All Listings /wp-admin/edit.php?post_type=listing1,1581.9833.7934.49
New Listing /wp-admin/post-new.php?post_type=listing2,2967.74166.4268.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/simple-listings-genesis/includes/class-tgm-plugin-activation.php:1910
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/simple-listings-genesis/views/single-listing.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-listings-genesis/views/archive-listing.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-listings-genesis/includes/featured-listing-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: realty, realtor, genesis, studiopress, real estate...

simple-listings-genesis/simple-listings-genesis.php 92% from 13 tests

"Simple Listings for Genesis" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,520 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP85971,6812,226
XML1716173
CSS12310121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.80
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods115
▷ Static methods54.35%
▷ Public methods9380.87%
▷ Protected methods2219.13%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/sample-images/simple-listings.png4.55KB2.31KB▼ 49.29%