84% comic-book-shortcode

Code Review | Comic Book Shortcode

WordPress plugin Comic Book Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: comic-book-shortcode
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5
  • WordPress version: 6.3.1
  • First release: Dec 25, 2012
  • Latest release: Feb 23, 2013
  • Number of updates: 7
  • Update frequency: every 180.3 days
  • Top authors: pgogy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /983 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.01MB] [CPU: ▼4.78ms] Passed 4 tests

Server-side resources used by Comic Book Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.65 ▼3.44
Dashboard /wp-admin3.31 ▲0.0149.90 ▼7.76
Posts /wp-admin/edit.php3.36 ▲0.0149.22 ▼4.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.29 ▼3.25
Media Library /wp-admin/upload.php3.24 ▲0.0140.34 ▲3.16

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Comic Book Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.18 ▼0.181.73 ▼0.1945.03 ▼4.36
Dashboard /wp-admin2,202 ▲225.65 ▼0.0292.57 ▼8.7742.15 ▼5.04
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0234.75 ▼5.7133.63 ▼5.22
Add New Post /wp-admin/post-new.php6,264 ▲4,73626.00 ▲3.09919.56 ▲235.4455.62 ▼0.50
Media Library /wp-admin/upload.php1,401 ▲44.41 ▲0.29109.91 ▼25.6046.13 ▼7.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comic-book-shortcode/comic-book-shortcode_editor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comic-book-shortcode/comic-book-shortcode_editor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/comic-book-shortcode/comic-book-shortcode_shortcode.php:136

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Editor Window), #2 (Shortcodes at work in a blog post)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === comic-book-shortcode === )
The official readme.txt might help

comic-book-shortcode/comic-book-shortcode.php Passed 13 tests

The primary PHP file in "Comic Book Shortcode" version 0.2 is used by WordPress to initiate all plugin functionality
32 characters long description:
Adds Comic Book entries to posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin893 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214037786
PHP37911107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 PNG files occupy 0.26MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/hs.png2.62KB7.54KB0.00%
screenshot-2.png38.89KB14.31KB▼ 63.20%
screenshot-1.png.png217.01KB78.00KB▼ 64.06%
js/hv.png2.80KB7.32KB0.00%