79% cyba-advanced-search

Code Review | Cyba Advanced Search

WordPress plugin Cyba Advanced Search scored79%from 54 tests.

About plugin

  • Plugin page: cyba-advanced-search
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2022
  • Latest release: Feb 4, 2023
  • Number of updates: 28
  • Update frequency: every 16.1 days
  • Top authors: elfynity5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Cyba Advanced Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.60 ▼1.29
Dashboard /wp-admin3.31 ▲0.0145.70 ▼1.78
Posts /wp-admin/edit.php3.36 ▲0.0141.60 ▼3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.36 ▼10.05
Media Library /wp-admin/upload.php3.23 ▲0.0135.60 ▼1.80
Cyba Advanced Search /wp-admin/options-general.php?page=cyba-advanced-search3.2030.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Cyba Advanced Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.30 ▼1.081.75 ▲0.1043.61 ▲5.04
Dashboard /wp-admin2,210 ▲194.86 ▼1.05105.80 ▲5.4741.14 ▲0.57
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0238.37 ▼2.7033.79 ▼1.63
Add New Post /wp-admin/post-new.php1,517 ▼1617.58 ▼5.65670.93 ▲44.2459.47 ▲8.68
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0996.54 ▲0.8942.99 ▲0.29
Cyba Advanced Search /wp-admin/options-general.php?page=cyba-advanced-search8732.0226.5231.54

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyba-advanced-search/includes/admin-menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyba-advanced-search/includes/form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyba-advanced-search/includes/form.php:8
    • > PHP Notice
      Undefined variable: arr_posts in wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php on line 2
    • > PHP Notice
      Trying to get property 'max_num_pages' of non-object in wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyba-advanced-search/includes/admin-menu.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: devgirl, directory, category, posts, search

cyba-advanced-search/cyba-advanced-search.php Passed 13 tests

The main file in "Cyba Advanced Search" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Display content using this shortcode [cyba-advanced-search] to insert in a page or post

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
Good job! No executable or dangerous file extensions detected487 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP523151399
CSS2511688

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions6100.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
No PNG files were detected