62% reactive-lite-advance-searching-filtering-grid

Code Review | Reactive LITE - Advanced WordPress Searching Filtering & Grid

WordPress plugin Reactive LITE - Advanced WordPress Searching Filtering & Grid scored 62% from 54 tests.

About plugin

  • Plugin page: reactive-lite-adv...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Aug 12, 2016
  • Latest release: Mar 16, 2019
  • Number of updates: 43
  • Update frequency: every 22.3 days
  • Top authors: redq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 4,021 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.71ms] Passed 4 tests

A check of server-side resources used by Reactive LITE - Advanced WordPress Searching Filtering & Grid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1748.55 ▲5.88
Dashboard /wp-admin3.41 ▲0.1147.67 ▲1.99
Posts /wp-admin/edit.php3.52 ▲0.1750.81 ▲4.85
Add New Post /wp-admin/post-new.php6.03 ▲0.1584.75 ▼2.61
Media Library /wp-admin/upload.php3.33 ▲0.1038.62 ▲2.60
System Status /wp-admin/admin.php?page=reactive_status3.3533.15
Reactive /wp-admin/admin.php?page=reactive_admin3.3332.10
Geobox(Pro) /wp-admin/admin.php?page=reactive_geobox3.3335.04
Settings(Pro) /wp-admin/admin.php?page=reactive_settings3.3334.17
All Reactive Builder /wp-admin/edit.php?post_type=reactive_builder3.3737.57
Add New Reactive Builder /wp-admin/post-new.php?post_type=reactive_builder3.8951.99
Meta Restrictions(Pro) /wp-admin/admin.php?page=meta_restrictions3.3349.63

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 203 new files
Database: 1 new table, 9 new options
New tables
wp_re_lat_lng
New WordPress options
webpack_public_path_url
widget_recent-posts
reactive_builder_admin_notices
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
category_children

Browser metrics Passed 4 tests

Reactive LITE - Advanced WordPress Searching Filtering & Grid: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,054 ▲31916.95 ▲2.309.95 ▲8.1439.58 ▼5.12
Dashboard /wp-admin2,310 ▲1227.31 ▲2.42116.65 ▲0.4645.09 ▼0.53
Posts /wp-admin/edit.php2,201 ▲1124.34 ▲2.3551.51 ▲13.2336.50 ▲2.75
Add New Post /wp-admin/post-new.php1,603 ▲6919.60 ▼3.70688.55 ▲0.3337.45 ▼17.51
Media Library /wp-admin/upload.php1,495 ▲1076.80 ▲2.59123.03 ▲12.7745.46 ▼2.61
System Status /wp-admin/admin.php?page=reactive_status9984.0344.2129.38
Reactive /wp-admin/admin.php?page=reactive_admin9553.9839.3529.92
Geobox(Pro) /wp-admin/admin.php?page=reactive_geobox8914.1142.8125.01
Settings(Pro) /wp-admin/admin.php?page=reactive_settings8914.2240.8124.68
All Reactive Builder /wp-admin/edit.php?post_type=reactive_builder1,1744.2944.7127.55
Add New Reactive Builder /wp-admin/post-new.php?post_type=reactive_builder1,6435.7477.6290.79
Meta Restrictions(Pro) /wp-admin/admin.php?page=meta_restrictions8914.1042.9726.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_re_lat_lng
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • category_children
    • webpack_public_path_url
    • widget_recent-comments
    • can_compress_scripts
    • reactive_builder_admin_notices
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-general-settings.php
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-meta-restrictions.php
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-addons.php
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-admin.php
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-geobox-settings.php
    • > /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-templates.php
  • 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/map-info-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/grid-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/preview-popup-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-geobox-html.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/shortcodes/grid-preview.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/vendor/doctrine/inflector/tests/Doctrine/Tests/DoctrineTestCase.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/reactive-templates/layouts/layout.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/shortcodes/preview.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-system-status.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reactive-lite-advance-searching-filtering-grid/reactive-templates/layouts/category-layout.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=reactive_status
    • > Network (severe)
    wp-content/plugins/reactive-lite-advance-searching-filtering-grid/admin/admin-template/reactive-test-memory.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=reactive_geobox
    • > Javascript (severe) in unknown
    /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/assets/dist/js/re_geoboxSettings_b0c9db.js?ver=6.3.1 0:36742 Uncaught ReferenceError: REACTIVE_ADMIN is not defined
    • > GET request to /wp-admin/admin.php?page=reactive_settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/assets/dist/js/re_generalSettings_733e74.js?ver=6.3.1 0:37145 Uncaught ReferenceError: REACTIVE_ADMIN is not defined
    • > GET request to /wp-admin/admin.php?page=meta_restrictions
    • > Javascript (severe) in unknown
    /wp-content/plugins/reactive-lite-advance-searching-filtering-grid/assets/dist/js/re_metaRestrictions_dc97b2.js?ver=6.3.1 0:36744 Uncaught ReferenceError: REACTIVE_ADMIN is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

reactive-lite-advance-searching-filtering-grid/index.php 85% from 13 tests

This is the main PHP file of "Reactive LITE - Advanced WordPress Searching Filtering & Grid" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reactive-lite-advance-searching-filtering-grid.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin25,339 lines of code in 179 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript641,0451,0429,265
PHP671,0511,6217,027
CSS244592214,086
PO File62,3043,5493,312
XML7571171,197
JSON600321
Markdown2560108
YAML15016
SVG2007

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.41
Average class complexity23.78
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes37
▷ Abstract classes38.11%
▷ Concrete classes3491.89%
▷ Final classes00.00%
Methods276
▷ Static methods176.16%
▷ Public methods24789.49%
▷ Protected methods238.33%
▷ Private methods62.17%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/img/location.png3.48KB1.72KB▼ 50.62%
assets/dist/img/cluster.png1.84KB0.84KB▼ 54.41%
assets/dist/img/cluster-s.png2.22KB0.95KB▼ 57.22%
assets/dist/img/cluster-n.png2.25KB0.93KB▼ 58.42%
assets/dist/img/GridPlaceholder.png5.67KB0.75KB▼ 86.71%