84% lenbox-cbnx

Code Review | Lenbox CBNX

WordPress plugin Lenbox CBNX scored84%from 54 tests.

About plugin

  • Plugin page: lenbox-cbnx
  • Plugin version: 2.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 30, 2021
  • Latest release: Nov 6, 2023
  • Number of updates: 31
  • Update frequency: every 22.0 days
  • Top authors: vazlenbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.58ms] Passed 4 tests

A check of server-side resources used by Lenbox CBNX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.85 ▼4.84
Dashboard /wp-admin3.34 ▲0.0447.63 ▼4.27
Posts /wp-admin/edit.php3.39 ▲0.0464.59 ▲21.24
Add New Post /wp-admin/post-new.php5.92 ▲0.04104.26 ▲3.31
Media Library /wp-admin/upload.php3.26 ▲0.0444.40 ▲8.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lenbox CBNX
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5114.29 ▲0.221.77 ▲0.1043.70 ▼2.61
Dashboard /wp-admin2,221 ▲415.62 ▲0.01103.23 ▲12.4346.85 ▲8.90
Posts /wp-admin/edit.php2,127 ▲272.01 ▲0.0652.81 ▲11.5942.34 ▲5.42
Add New Post /wp-admin/post-new.php1,423 ▼11217.95 ▼6.96629.04 ▼27.5951.40 ▼8.69
Media Library /wp-admin/upload.php1,423 ▲234.25 ▲0.06126.73 ▲21.4758.09 ▲14.19

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lenbox-cbnx/lenbox-cbnx.php:20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lenbox-cbnx/views/order_table.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/lenbox-cbnx/views/order_table.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/lenbox-cbnx/views/order_table.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: There were no tags found
Please take inspiration from this readme.txt

lenbox-cbnx/lenbox-cbnx.php Passed 13 tests

The principal PHP file in "Lenbox CBNX" v. 2.5.0 is loaded by WordPress automatically on each request
60 characters long description:
Allows users to demand EMI from Lenbox and it's partner FLOA

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,076 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5162113956
PO File15463120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.67
▷ Minimum class complexity16.00
▷ Maximum class complexity24.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions17
▷ Named functions1482.35%
▷ Anonymous functions317.65%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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