84% memberlite-elements

Code Review | Memberlite Elements

WordPress plugin Memberlite Elements scored84%from 54 tests.

About plugin

  • Plugin page: memberlite-elements
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2018
  • Latest release: Sep 21, 2023
  • Number of updates: 18
  • Update frequency: every 114.4 days
  • Top authors: strangerstudios (88.89%)andrewza (11.11%)kimannwall (11.11%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /13,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.08MB] [CPU: ▼10.81ms] Passed 4 tests

An overview of server-side resources used by Memberlite Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.08 ▼1.11
Dashboard /wp-admin3.33 ▲0.0350.00 ▲2.69
Posts /wp-admin/edit.php3.38 ▲0.0347.85 ▼0.00
Add New Post /wp-admin/post-new.php5.47 ▼0.4276.12 ▼39.87
Media Library /wp-admin/upload.php3.25 ▲0.0334.74 ▼2.24
Custom Sidebars /wp-admin/themes.php?page=memberlite-custom-sidebars3.2232.03

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Memberlite Elements
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲14113.96 ▼0.355.50 ▲3.1442.86 ▼3.03
Dashboard /wp-admin2,225 ▲225.88 ▲1.00103.35 ▼3.8538.75 ▼4.66
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0336.00 ▼3.9934.67 ▼2.21
Add New Post /wp-admin/post-new.php6,291 ▲4,73718.78 ▲0.68906.65 ▲285.4654.74 ▼2.01
Media Library /wp-admin/upload.php1,401 ▲44.18 ▼0.07111.39 ▲8.1646.11 ▲0.07
Custom Sidebars /wp-admin/themes.php?page=memberlite-custom-sidebars8682.0528.1544.88

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberlite-elements/elements/page_banners.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/memberlite-elements/memberlite-elements.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberlite-elements/elements/functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberlite-elements/elements/landing_page.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberlite-elements/elements/sidebars.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Page editor with the Memberlite Elements metabox for banner settings.), #2 (Admin page under Appearance > Custom Sidebars.)
The official readme.txt might help

memberlite-elements/memberlite-elements.php Passed 13 tests

The main PHP file in "Memberlite Elements" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
A set of elements designed enhance the appearance of sites using the Memberlite Theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,271 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP51702301,085
PO File15762135
CSS21832
JavaScript131219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin