84% wp-listings-custom-search-form

Code Review | IMPress Listings Custom Search Widget

WordPress plugin IMPress Listings Custom Search Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-listings-custo...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Sep 4, 2017
  • Number of updates: 18
  • Update frequency: every 39.7 days
  • Top authors: anil.oxzin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.96ms] Passed 4 tests

An overview of server-side resources used by IMPress Listings Custom Search Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.82 ▼2.69
Dashboard /wp-admin3.31 ▼0.0443.78 ▼15.18
Posts /wp-admin/edit.php3.36 ▲0.0044.80 ▼5.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.81 ▼24.88
Media Library /wp-admin/upload.php3.23 ▲0.0033.17 ▼2.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by IMPress Listings Custom Search Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.791.78 ▲0.1441.57 ▼3.32
Dashboard /wp-admin2,203 ▲125.81 ▲0.8997.53 ▼11.0439.31 ▼6.63
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0335.00 ▼5.4131.74 ▼7.99
Add New Post /wp-admin/post-new.php1,542 ▲2318.64 ▼4.65609.48 ▼43.3950.86 ▼1.73
Media Library /wp-admin/upload.php1,382 ▼34.19 ▼0.0895.57 ▼11.5042.59 ▼1.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-listings-custom-search-form/wp-listings-search-form-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-listings-custom-search-form/wp-listings-search-form-shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: wp-listing-addon, impress-listing-addon, wp-listing, impress-listings

wp-listings-custom-search-form/wp-listings-custom-search-form.php 92% from 13 tests

The primary PHP file in "IMPress Listings Custom Search Widget" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 258 characters long)

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 plugin392 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File36673162
PHP28030160
CSS10070

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin