83% blog-manager-wp

Code Review | Blog Manager WP

WordPress plugin Blog Manager WP scored83%from 54 tests.

About plugin

  • Plugin page: blog-manager-wp
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 11
  • Update frequency: every 59.9 days
  • Top authors: wpdiscover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /11,964 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 gracefully, with no errors

Server metrics [RAM: ▲0.66MB] [CPU: ▲4.13ms] Passed 4 tests

This is a short check of server-side resources used by Blog Manager WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6839.70 ▼2.95
Dashboard /wp-admin3.97 ▲0.6650.99 ▲2.79
Posts /wp-admin/edit.php4.08 ▲0.7257.04 ▲9.15
Add New Post /wp-admin/post-new.php6.55 ▲0.6698.65 ▲7.71
Media Library /wp-admin/upload.php3.89 ▲0.6641.91 ▲8.95
Install Popular Plugins From WPdiscover /wp-admin/admin.php?page=pbsm_other_plugin3.97484.60
Documentation /wp-admin/admin.php?page=pbsm_documentation3.8836.18
Getting Started /wp-admin/admin.php?page=pbsm_getting_started3.9136.23
Upgrade To Premium /wp-admin/admin.php?page=pbsm_upgrade_to_premium3.8837.72
Blog Manager Settings /wp-admin/admin.php?page=pbsm_settings4.32485.82

Server storage [IO: ▲9.11MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 137 new files
Database: no new tables, 34 new options
New WordPress options
display_html_tags
social_icon_style
read_more_text
theysaidso_admin_options
facebook_link
db_upgraded
pinterest_link
display_category
linkedin_link
content_LineHeight
...

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Manager WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲17013.51 ▼0.659.43 ▲7.2439.83 ▼5.58
Dashboard /wp-admin2,250 ▲735.74 ▲0.2091.37 ▼12.3683.71 ▲40.87
Posts /wp-admin/edit.php2,153 ▲532.17 ▲0.1533.34 ▼9.2631.78 ▼6.18
Add New Post /wp-admin/post-new.php6,450 ▲4,92429.31 ▲6.231,005.35 ▲286.0041.10 ▼16.10
Media Library /wp-admin/upload.php1,448 ▲484.28 ▲0.14101.04 ▲4.1571.28 ▲28.81
Install Popular Plugins From WPdiscover /wp-admin/admin.php?page=pbsm_other_plugin1,6341.9025.8834.15
Documentation /wp-admin/admin.php?page=pbsm_documentation1,1421.7828.8936.11
Getting Started /wp-admin/admin.php?page=pbsm_getting_started1,0783.6277.8366.85
Upgrade To Premium /wp-admin/admin.php?page=pbsm_upgrade_to_premium1,3661.7827.8154.35
Blog Manager Settings /wp-admin/admin.php?page=pbsm_settings5,9538.02368.44141.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 34 options in the database
    • template_alternativebackground
    • content_LetterSpacing
    • wp_blog_pbsm_settings
    • display_comment_count
    • pbsm_plugin_do_activation_redirect
    • can_compress_scripts
    • read_more_on
    • display_tag
    • template_titleLineHeight
    • pbsm_is_optin
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× 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/blog-manager-wp/includes/pbsm_block/index.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-manager-wp/includes/extra-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blog-manager-wp/pbsm_layouts_css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-manager-wp/includes/scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blog-manager-wp/includes/shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
  • Donate link: Invalid URI ("#")
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in blog-manager-wp/assets to your readme.txt
The official readme.txt is a good inspiration

blog-manager-wp/blog-manager.php 92% from 13 tests

This is the main PHP file of "Blog Manager WP" version 1.0.5, 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blog-manager-wp.php" instead of "blog-manager.php")

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 detected28,873 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG4009,571
CSS129203156,799
PHP123222534,792
Sass285204,517
JavaScript7184313,194

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
21 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow/arrow5.png0.72KB0.76KB0.00%
assets/images/navigation/navigation4.png0.64KB0.65KB0.00%
assets/images/navigation/navigation7.png0.81KB0.69KB▼ 14.65%
assets/images/arrow/arrow4.png0.60KB0.71KB0.00%
assets/images/arrow/arrow3.png0.44KB0.45KB0.00%