78% acs-advanced-search

Code Review | ACS ADVANCED SEARCH

WordPress plugin ACS ADVANCED SEARCH scored78%from 54 tests.

About plugin

  • Plugin page: acs-advanced-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Sep 19, 2017
  • Latest release: Sep 19, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: ritesh143 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /849 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ACS ADVANCED SEARCH
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.53 ▲0.79
Dashboard /wp-admin3.34 ▲0.0445.03 ▼8.63
Posts /wp-admin/edit.php3.39 ▲0.0446.43 ▼0.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.72 ▼11.16
Media Library /wp-admin/upload.php3.26 ▲0.0435.69 ▲0.55
ACS Advanced Search /wp-admin/options-general.php?page=acs-advanced-search-options3.2627.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
acs-advanced-custom-search-settings
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACS ADVANCED SEARCH
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲13413.73 ▼0.528.35 ▲6.3843.71 ▼2.00
Dashboard /wp-admin2,212 ▲245.84 ▲0.9298.97 ▼16.8138.74 ▼9.27
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0240.30 ▲3.3737.60 ▲2.89
Add New Post /wp-admin/post-new.php1,542 ▲2818.49 ▲0.88623.43 ▼65.6558.18 ▲1.57
Media Library /wp-admin/upload.php1,394 ▲34.20 ▼0.0099.69 ▼1.3241.38 ▼2.14
ACS Advanced Search /wp-admin/options-general.php?page=acs-advanced-search-options1,0142.0326.5534.00

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • acs-advanced-custom-search-settings
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=acs-advanced-search-options
    • > Notice in wp-content/plugins/acs-advanced-search/admin/class-acs-advanced-search-backend.php+359
    Undefined variable: date_selected
    • > GET request to /wp-admin/options-general.php?page=acs-advanced-search-options
    • > Notice in wp-content/plugins/acs-advanced-search/admin/class-acs-advanced-search-backend.php+360
    Undefined variable: date_range_selected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acs-advanced-search/admin/acs-display-options-page.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
You can look at the official readme.txt

acs-advanced-search/acs-advanced-search.php 92% from 13 tests

The main file in "ACS ADVANCED SEARCH" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,355 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7150425919
CSS43964428
JavaScript1288

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity37.50
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods3790.24%
▷ Protected methods00.00%
▷ Private methods49.76%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
8 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png84.23KB37.99KB▼ 54.89%
assets/images/select-image.png0.17KB0.18KB0.00%
assets/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
assets/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%