90% wpcasa-advanced-search

Code Review | WPCasa Advanced Search

WordPress plugin WPCasa Advanced Search scored 90% from 54 tests.

About plugin

  • Plugin page: wpcasa-advanced-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2015
  • Latest release: Jul 14, 2021
  • Number of updates: 13
  • Update frequency: every 156.5 days
  • Top authors: wpSight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 14,080 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.06ms] Passed 4 tests

An overview of server-side resources used by WPCasa Advanced Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.26 ▼7.31
Dashboard /wp-admin3.31 ▲0.0043.29 ▼16.04
Posts /wp-admin/edit.php3.36 ▲0.0043.95 ▲1.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.87 ▼6.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.43 ▲2.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPCasa Advanced Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.36 ▼1.021.62 ▼0.7346.34 ▲0.15
Dashboard /wp-admin2,206 ▲155.85 ▲0.84110.37 ▲2.4740.81 ▼0.93
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0239.83 ▲3.9934.16 ▼1.32
Add New Post /wp-admin/post-new.php1,519 ▼2323.38 ▲5.04663.49 ▲23.3963.72 ▼0.06
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0892.56 ▼5.8740.83 ▼3.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: advanced search, listings, wpcasa, properties, realestate...

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

Analyzing the main PHP file in "WPCasa Advanced Search" version 1.0.0
80 characters long description:
Display an expandable area with advanced options in WPCasa property search form.

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
Success! There were no dangerous files found in this plugin192 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14274105
PO File1141447
JavaScript24040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin