79% blox-lite

Code Review | Blox Lite

WordPress plugin Blox Lite scored 79% from 54 tests.

About plugin

  • Plugin page: blox-lite
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Feb 21, 2016
  • Latest release: Dec 17, 2022
  • Number of updates: 27
  • Update frequency: every 92.3 days
  • Top authors: ndiego (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

2,000+ active / 32,741 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Blox Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.65 ▼2.60
Dashboard /wp-admin3.31 ▲0.0047.48 ▲1.15
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▲2.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.05 ▼1.57
Media Library /wp-admin/upload.php3.23 ▲0.0035.90 ▲5.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Blox Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.051.62 ▲0.0640.67 ▼1.81
Dashboard /wp-admin2,206 ▲184.88 ▲0.04108.68 ▼9.3442.98 ▼1.08
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0541.95 ▲7.5035.84 ▲0.77
Add New Post /wp-admin/post-new.php1,534 ▼823.24 ▲5.05704.68 ▲53.1859.47 ▲8.42
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.0298.28 ▼3.7142.84 ▼0.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/blox-lite/uninstall.php+28
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

blox-lite/blox-lite.php 77% from 13 tests

This is the main PHP file of "Blox Lite" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,552 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,2522,0843,285
CSS48192918
JavaScript2125111338
SVG10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity40.06
▷ Minimum class complexity2.00
▷ Maximum class complexity272.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity100.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods158
▷ Static methods159.49%
▷ Public methods158100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin