10% explara-lite

Code Review | Explara Lite

WordPress plugin Explara Lite scored 10% from 54 tests.

About plugin

  • Plugin page: explara-lite
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2018
  • Latest release: Dec 5, 2019
  • Number of updates: 17
  • Update frequency: every 24.2 days
  • Top authors: explara2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'ExplaraLite_Install' not found

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.15ms] Passed 4 tests

Server-side resources used by Explara Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.97 ▼4.27
Dashboard /wp-admin3.34 ▲0.0450.37 ▲2.72
Posts /wp-admin/edit.php3.46 ▲0.1052.17 ▲5.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.97 ▼8.96
Media Library /wp-admin/upload.php3.25 ▲0.0234.83 ▲1.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Explara Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲17114.59 ▲1.271.74 ▼0.1742.50 ▼0.11
Dashboard /wp-admin2,356 ▲1506.39 ▲0.53120.13 ▲21.3942.27 ▲1.81
Posts /wp-admin/edit.php2,268 ▲1793.30 ▲1.2944.57 ▲9.5133.55 ▲1.34
Add New Post /wp-admin/post-new.php1,535 ▼723.38 ▲4.98641.31 ▼10.6337.20 ▼18.46
Media Library /wp-admin/upload.php1,407 ▲194.17 ▼0.0481.44 ▼21.4945.31 ▲0.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'ExplaraLite_Install' not found
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login-page.php
    • > /wp-content/plugins/explara-lite/pages/member/events/shortcode-events-past.php
    • > /wp-content/plugins/explara-lite/pages/member/members/shortcode-members-page.php
    • > /wp-content/plugins/explara-lite/pages/member/events/shortcode-events-upcoming.php
    • > /wp-content/plugins/explara-lite/pages/member/events/shortcode-events-past-page.php
    • > /wp-content/plugins/explara-lite/pages/member/events/shortcode-events-upcoming-page.php
    • > /wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login.php
    • > /wp-content/plugins/explara-lite/pages/member/members/shortcode-members-list.php
  • 63× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/explara-lite/pages/admin/inc-menu-settings.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/explara-lite/pages/admin/inc-menu-settings.php:34
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login-page.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login.php on line 22
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/explara-lite/pages/member/events/shortcode-events-past.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/explara-lite/pages/member/events/shortcode-events-past-page.php on line 14
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/explara-lite/pages/member/events/shortcode-events-past-page.php on line 14
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/explara-lite/pages/member/events/shortcode-events-upcoming.php on line 8
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login-page.php on line 26
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/explara-lite/pages/member/members/shortcode-members-login.php on line 14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: groups, members, events, explara

explara-lite/explara-lite.php Passed 13 tests

This is the main PHP file of "Explara Lite" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Easily integrate Explara Groups, Members & Events into your website using Shortcodes.

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
No dangerous file extensions were detected28,980 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
CSS23,012679,109
JSON2006,770
Sass1339214,471
JavaScript48613753,992
SVG64373,255
PHP26328641,383

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.30
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods38
▷ Static methods2873.68%
▷ Public methods3284.21%
▷ Protected methods00.00%
▷ Private methods615.79%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin