78% taxus-advanced-search

Code Review | Taxus Advanced Search

WordPress plugin Taxus Advanced Search scored78%from 54 tests.

About plugin

  • Plugin page: taxus-advanced-se...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.7
  • WordPress version: 6.3.1
  • First release: May 24, 2018
  • Latest release: Aug 2, 2018
  • Number of updates: 6
  • Update frequency: every 11.8 days
  • Top authors: taxusir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.63ms] Passed 4 tests

Analyzing server-side resources used by Taxus Advanced Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.83 ▼0.77
Dashboard /wp-admin3.36 ▲0.0544.58 ▼3.92
Posts /wp-admin/edit.php3.47 ▲0.1148.29 ▼0.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.81 ▲0.62
Media Library /wp-admin/upload.php3.28 ▲0.0534.15 ▼1.34
Taxus Settings /wp-admin/admin.php?page=taxus_config_page3.2930.71
Sync /wp-admin/admin.php?page=taxus_send_data_page3.2729.42

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
taxus_unique_id
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Taxus Advanced Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19813.56 ▼0.769.44 ▲7.7244.30 ▲1.84
Dashboard /wp-admin2,233 ▲415.81 ▲0.9198.47 ▼16.3237.46 ▼1.61
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0239.17 ▼0.2836.35 ▲0.61
Add New Post /wp-admin/post-new.php1,556 ▲2323.27 ▲0.19605.29 ▼72.5754.22 ▲0.52
Media Library /wp-admin/upload.php1,418 ▲304.22 ▲0.0295.49 ▼10.9441.31 ▼5.07
Taxus Settings /wp-admin/admin.php?page=taxus_config_page8312.0324.9025.42
Sync /wp-admin/admin.php?page=taxus_send_data_page8312.0725.0928.01

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • taxus_unique_id
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=taxus_config_page
    • > Notice in wp-content/plugins/taxus-advanced-search/admin/config.php+23
    Undefined index: apisearch

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/taxus-advanced-search/languages/common-strings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

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

This is the main PHP file of "Taxus Advanced Search" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin762 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP69124629
PO File14549133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2592.59%
▷ Anonymous functions27.41%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected