72% blog-manager-light

Code Review | Blog Manager Light

WordPress plugin Blog Manager Light scored 72% from 54 tests.

About plugin

  • Plugin page: blog-manager-light
  • Plugin version: 1.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 6.3.1
  • First release: Jan 19, 2015
  • Latest release: Mar 1, 2022
  • Number of updates: 35
  • Update frequency: every 74.2 days
  • Top authors: OTWthemes (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 61,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.19MB] [CPU: ▲1.32ms] Passed 4 tests

Analyzing server-side resources used by Blog Manager Light
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.65 ▲1.2048.43 ▲9.00
Dashboard /wp-admin4.49 ▲1.1953.01 ▲6.08
Posts /wp-admin/edit.php4.55 ▲1.1951.55 ▲0.16
Add New Post /wp-admin/post-new.php7.09 ▲1.2196.31 ▼8.75
Media Library /wp-admin/upload.php4.42 ▲1.1944.15 ▲7.77
Blog Lists /wp-admin/admin.php?page=otw-bml4.3640.89
License Manager /wp-admin/admin.php?page=otw-bml-lm4.45190.61
Add Lists /wp-admin/admin.php?page=otw-bml-add4.6439.77
otwfcr /wp-admin/admin.php?page=otwfcr4.3241.48
Options /wp-admin/admin.php?page=otw-bml-settings4.3340.70

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blog Manager Light
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲31315.26 ▲0.5136.38 ▲34.3456.89 ▲10.78
Dashboard /wp-admin2,254 ▲695.31 ▲0.40119.88 ▲17.0889.95 ▲47.94
Posts /wp-admin/edit.php2,135 ▲462.60 ▲0.6137.11 ▼8.9434.07 ▼2.94
Add New Post /wp-admin/post-new.php6,648 ▲5,10620.22 ▲2.11996.57 ▲391.4242.39 ▼14.13
Media Library /wp-admin/upload.php1,445 ▲574.65 ▲0.48104.84 ▲7.8972.43 ▲27.83
Blog Lists /wp-admin/admin.php?page=otw-bml8942.1930.9241.13
License Manager /wp-admin/admin.php?page=otw-bml-lm9732.1931.0227.73
Add Lists /wp-admin/admin.php?page=otw-bml-add1,9982.9164.1138.77
otwfcr /wp-admin/admin.php?page=otwfcr8292.1627.5222.61
Options /wp-admin/admin.php?page=otw-bml-settings9392.3831.5331.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_otw_bm_widget_items
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=otw-bml
    • > Notice in wp-content/plugins/blog-manager-light/views/otw_blog_manager_list.php+42
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=otw-bml-add
    • > Notice in wp-content/plugins/blog-manager-light/views/otw_blog_manager_add_list.php+157
    Undefined variable: nextID

SRP 0% from 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
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blog-manager-light/include/otw_components/otw_factory/views/action_message.php
    • > /wp-content/plugins/blog-manager-light/skeleton/components/news_sort.php
    • > /wp-content/plugins/blog-manager-light/skeleton/components/delimiter.php
  • 45× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/blog-manager-light/skeleton/components/content.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/components/widget_title.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/components/meta_date.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/blog-manager-light/include/otw_components/otw_factory/otw_factory.class.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/components/pagination.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/3-column-carousel.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/components/widget_content.php:7
    • > PHP Notice
      Trying to get property 'post_content' of non-object in wp-content/plugins/blog-manager-light/skeleton/components/social.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/components/view_all.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-manager-light/skeleton/2-column.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Templates and post selection), #2 (List elements and order), #3 (Posts order and limits), #4 (More options)
The official readme.txt might help

blog-manager-light/otw_blog_manager_light.php 92% from 13 tests

This is the main PHP file of "Blog Manager Light" version 1.20, 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blog-manager-light.php" instead of "otw_blog_manager_light.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin17,746 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
CSS106902306,709
PHP511,5636265,709
SVG2003,070
JavaScript135173092,258

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity80.80
▷ Minimum class complexity6.00
▷ Maximum class complexity193.00
Average method complexity7.54
▷ Minimum method complexity1.00
▷ Maximum method complexity97.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods122
▷ Static methods10.82%
▷ Public methods9073.77%
▷ Protected methods00.00%
▷ Private methods3226.23%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/colorpicker/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%
assets/img/colorpicker/colorpicker_hsb_s.png1.14KB0.80KB▼ 29.97%
frontend/images/arrow-prev.png0.97KB0.19KB▼ 80.92%
screenshot-3.png41.24KB16.02KB▼ 61.16%
frontend/images/arrow-next.png0.96KB0.18KB▼ 81.36%