67% comicbookmanagementsystemweeklypicks

Code Review | Comic Book Management System

WordPress plugin Comic Book Management System scored67%from 54 tests.

About plugin

  • Plugin page: comicbookmanageme...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2020
  • Latest release: Apr 15, 2023
  • Number of updates: 14
  • Update frequency: every 82.4 days
  • Top authors: inksplat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.57ms] Passed 4 tests

A check of server-side resources used by Comic Book Management System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.03 ▼5.93
Dashboard /wp-admin3.31 ▲0.0143.74 ▼5.43
Posts /wp-admin/edit.php3.36 ▲0.0144.87 ▼0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.08 ▼17.98
Media Library /wp-admin/upload.php3.24 ▲0.0136.76 ▼0.15

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/comicbookmanagementsystemweeklypicks/" and "wp-content/uploads/"
    • (new file) wp-content/cbms_weekly_picks_cover/.empty
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables
wp_cbms_weekly_picks
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comic Book Management System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15313.80 ▼0.559.25 ▲7.6541.71 ▲1.88
Dashboard /wp-admin2,197 ▲205.51 ▼0.1687.06 ▼1.3781.92 ▲38.96
Posts /wp-admin/edit.php2,114 ▲141.97 ▼0.0233.83 ▼2.1634.23 ▼0.37
Add New Post /wp-admin/post-new.php1,695 ▲16922.26 ▼0.68794.61 ▲99.5061.45 ▲3.63
Media Library /wp-admin/upload.php1,414 ▲144.23 ▲0.0194.82 ▼5.5474.45 ▲29.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_cbms_weekly_picks
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_footer.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require(CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php): failed to open stream: No such file or directory in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_display_weekly_picks.php on line 3
    • > PHP Warning
      Use of undefined constant CBMS_WEEKLY_PICKS_PLUGIN_DIR - assumed 'CBMS_WEEKLY_PICKS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
    • > PHP Fatal error
      require(): Failed opening required 'CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php' (include_path='.:/usr/share/php') in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
    • > PHP Warning
      Use of undefined constant CBMS_WEEKLY_PICKS_PLUGIN_DIR - assumed 'CBMS_WEEKLY_PICKS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
    • > PHP Fatal error
      require(): Failed opening required 'CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php' (include_path='.:/usr/share/php') in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/comicbookmanagementsystemweeklypicks/class.cbms_weekly_picks_admin_panel.php:144
    • > PHP Warning
      require(CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php): failed to open stream: No such file or directory in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_display_weekly_picks.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_header.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

comicbookmanagementsystemweeklypicks/CBMS_WeeklyPicks.php 85% from 13 tests

The main PHP script in "Comic Book Management System" version 2.2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("comicbookmanagementsystemweeklypicks.php" instead of "CBMS_WeeklyPicks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,862 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG200848
PHP911230502
CSS2552316
JavaScript1161196

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity11.00
▷ Maximum class complexity27.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods420.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon.png1.00KB0.99KB▼ 1.27%
img/logo.png69.94KB25.39KB▼ 63.70%