10% eps-super-search

Code Review | Super Search - Custom Post Types

WordPress plugin Super Search - Custom Post Types scored10%from 54 tests.

About plugin

  • Plugin page: eps-super-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.0
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Mar 2, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: shawn@eggplantstudios.ca (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

400+ active /6,539 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/eps-super-search/widget.super_search.php+166
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.55ms] Passed 4 tests

Server-side resources used by Super Search - Custom Post Types
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.94 ▼39.87
Dashboard /wp-admin2.10 ▼1.257.29 ▼57.16
Posts /wp-admin/edit.php2.10 ▼1.268.02 ▼38.32
Add New Post /wp-admin/post-new.php2.10 ▼3.796.93 ▼90.86
Media Library /wp-admin/upload.php2.10 ▼1.136.22 ▼28.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
eps_ss_version
widget_eps_super_search
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Search - Custom Post Types
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.261.68 ▲0.0339.47 ▼4.56
Dashboard /wp-admin2,198 ▲185.58 ▼0.1083.35 ▼3.0737.92 ▼1.63
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0238.54 ▲1.6834.90 ▼1.96
Add New Post /wp-admin/post-new.php1,526 ▼223.85 ▲0.70613.94 ▼44.9859.00 ▲7.24
Media Library /wp-admin/upload.php1,400 ▼34.13 ▼0.07100.77 ▲4.7044.18 ▲3.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/eps-super-search/widget.super_search.php+166
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • eps_ss_version
    • widget_eps_super_search
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/eps-super-search/templates/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/eps-super-search/templates/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eps-super-search/eps-super-search.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eps-super-search/widget.super_search.php:2

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 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "none"
  • Plugin Name: You should set the name of your plugin on the first line ( === eps-super-search === )
You can take inspiration from this readme.txt

eps-super-search/eps-super-search.php Passed 13 tests

The main PHP script in "Super Search - Custom Post Types" version 1.0.0 is automatically included on every request by WordPress
111 characters long description:
This plugin allows you to create search widgets for custom post types, and redirect to custom search templates.

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
Everything looks great! No dangerous files found in this plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46089187

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin