69% selection-lite

Code Review | Selection Lite

WordPress plugin Selection Lite scored69%from 54 tests.

About plugin

  • Plugin page: selection-lite
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2021
  • Latest release: Mar 7, 2023
  • Number of updates: 37
  • Update frequency: every 14.2 days
  • Top authors: merkulove (100%)

Code review

54 tests

User reviews

1 review

Install metrics

6,000+ active /19,155 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲1.46ms] Passed 4 tests

This is a short check of server-side resources used by Selection Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4939.61 ▼0.36
Dashboard /wp-admin3.86 ▲0.5551.15 ▼2.50
Posts /wp-admin/edit.php3.91 ▲0.5552.58 ▲3.56
Add New Post /wp-admin/post-new.php6.44 ▲0.5594.08 ▲5.12
Media Library /wp-admin/upload.php3.78 ▲0.5538.56 ▲5.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Selection Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.30 ▼1.081.73 ▼0.2841.29 ▼4.90
Dashboard /wp-admin2,243 ▲584.86 ▼0.05119.26 ▲5.9044.13 ▲0.22
Posts /wp-admin/edit.php2,126 ▲372.01 ▼0.0041.27 ▲2.3135.77 ▲2.40
Add New Post /wp-admin/post-new.php1,544 ▲2522.99 ▼0.27620.82 ▼29.2252.79 ▼10.93
Media Library /wp-admin/upload.php1,428 ▲464.27 ▲0.05105.12 ▲2.3342.44 ▼2.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Compile error in wp-content/plugins/selection-lite/src/autoload.php+29
    Cannot declare class Merkulove\SelectionLite\Autoload, because the name is already in use
  • This plugin has failed uninstalling correctly, leaving 187 files (2.49MB) in the plugin directory
    • (new file) css/admin.min.css
    • (new file) css/admin.css
    • (new file) css/crumber-elementor.min.css
    • (new file) changelog.md
    • (new file) css/crawler-elementor.css
    • (new file) css/elementor-admin.css
    • (new file) css/crumber-elementor.css
    • (new file) css/crawler-elementor.min.css
    • (new file) css/buttoner-elementor.css
    • (new file) css/buttoner-elementor.min.css
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === selection-lite === )
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

selection-lite/selection-lite.php 92% from 13 tests

"Selection Lite" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.0")

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
Good job! No executable or dangerous file extensions detected31,908 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
PHP444,1216,40617,203
CSS261,03579812,530
Sass1231537983
JavaScript12213624767
SVG9001398
Markdown126027

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity25.16
▷ Minimum class complexity3.00
▷ Maximum class complexity74.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes43
▷ Abstract classes12.33%
▷ Concrete classes4297.67%
▷ Final classes2559.52%
Methods573
▷ Static methods498.55%
▷ Public methods30553.23%
▷ Protected methods417.16%
▷ Private methods22739.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin