90% edd-search

Code Review | Advanced Ajax Search For Easy Digital Downloads (EDD)

WordPress plugin Advanced Ajax Search For Easy Digital Downloads (EDD) scored90%from 54 tests.

About plugin

  • Plugin page: edd-search
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Jun 22, 2023
  • Number of updates: 11
  • Update frequency: every 114.6 days
  • Top authors: kopila47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Advanced Ajax Search For Easy Digital Downloads (EDD)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.28 ▼10.72
Dashboard /wp-admin3.32 ▲0.0148.03 ▼7.03
Posts /wp-admin/edit.php3.37 ▲0.0150.95 ▲1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.37 ▲7.21
Media Library /wp-admin/upload.php3.24 ▲0.0137.53 ▲1.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Ajax Search For Easy Digital Downloads (EDD)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲12213.45 ▼0.828.99 ▲6.8841.60 ▼3.69
Dashboard /wp-admin2,200 ▲235.61 ▲0.0392.21 ▼10.0039.40 ▼7.59
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.0739.47 ▲3.8436.17 ▼1.01
Add New Post /wp-admin/post-new.php1,541 ▲1522.98 ▼0.57652.84 ▲15.9144.17 ▼9.29
Media Library /wp-admin/upload.php1,411 ▲144.21 ▲0.05100.15 ▼6.7743.41 ▼0.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
6 plugin tags: search, advanced search, auto-suggest, edd, easy digital downloads...

edd-search/edd-search.php Passed 13 tests

This is the main PHP file of "Advanced Ajax Search For Easy Digital Downloads (EDD)" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Ajax Search for Easy Digital Downloads

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 detected199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14631113
JavaScript116058
CSS10028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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