90% light-bakso

Code Review | Light Bakso

WordPress plugin Light Bakso scored90%from 54 tests.

About plugin

  • Plugin page: light-bakso
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Nov 9, 2018
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: mahafuzur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /621 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.85ms] Passed 4 tests

A check of server-side resources used by Light Bakso
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.14 ▼2.91
Dashboard /wp-admin3.34 ▲0.0448.75 ▼4.19
Posts /wp-admin/edit.php3.39 ▲0.0447.07 ▼2.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.82 ▼10.07
Media Library /wp-admin/upload.php3.27 ▲0.0434.48 ▼0.69
All Slides /wp-admin/edit.php?post_type=lightbakso_carousel3.3137.29
Add New Slide /wp-admin/post-new.php?post_type=lightbakso_carousel3.4150.14
Settings /wp-admin/edit.php?post_type=lightbakso_carousel&page=lightbakso_settings3.2335.56
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=lightbakso_carousel3.3532.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
lightbakso_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Light Bakso
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,060 ▲27413.79 ▼0.4510.80 ▲8.4245.12 ▲2.94
Dashboard /wp-admin2,260 ▲574.79 ▼0.18103.90 ▼0.5037.31 ▼2.25
Posts /wp-admin/edit.php2,139 ▲422.03 ▲0.0237.10 ▲0.4536.50 ▲3.24
Add New Post /wp-admin/post-new.php1,568 ▲1918.81 ▼4.37653.72 ▼23.0667.22 ▲3.53
Media Library /wp-admin/upload.php1,436 ▲364.23 ▼0.04103.50 ▼1.5548.41 ▲2.69
All Slides /wp-admin/edit.php?post_type=lightbakso_carousel1,1201.9231.6130.01
Add New Slide /wp-admin/post-new.php?post_type=lightbakso_carousel1,7243.6969.2933.00
Settings /wp-admin/edit.php?post_type=lightbakso_carousel&page=lightbakso_settings1,2911.7124.7830.99
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=lightbakso_carousel1,3552.1526.2227.62

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: carousel, lightbox

light-bakso/light-bakso.php Passed 13 tests

The main PHP script in "Light Bakso" version 1.0.1 is automatically included on every request by WordPress
57 characters long description:
This is a wordpress carousel slider with lightbox effect,

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
Everything looks great! No dangerous files found in this plugin3,708 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55871,0342,461
PHP10173488739
CSS95068428
Markdown142080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/lib/owlcarousel/dist/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
public/lib/lightbox2/dist/images/next.png1.32KB1.58KB0.00%
public/lib/lightbox2/dist/images/close.png0.27KB0.29KB0.00%
public/lib/lightbox2/dist/images/prev.png1.33KB1.59KB0.00%