68% wp-storyboard-gallery

Code Review | WP Storyboard Gallery

WordPress plugin WP Storyboard Gallery scored68%from 54 tests.

About plugin

  • Plugin page: wp-storyboard-gal...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2012
  • Latest release: Oct 19, 2012
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: maca134 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,537 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼34.60ms] Passed 4 tests

Analyzing server-side resources used by WP Storyboard Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.44 ▼1.93
Dashboard /wp-admin3.39 ▲0.0926.57 ▼19.94
Posts /wp-admin/edit.php3.40 ▲0.0424.14 ▼30.77
Add New Post /wp-admin/post-new.php3.39 ▼2.5025.05 ▼75.66
Media Library /wp-admin/upload.php3.40 ▲0.1625.93 ▼12.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
wpsbg_optionsframework
wpstoryboardgalleries
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Storyboard Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16913.65 ▼0.704.68 ▲2.7941.72 ▼3.97
Dashboard /wp-admin2,227 ▲354.84 ▼1.2699.82 ▼6.0839.11 ▼1.17
Posts /wp-admin/edit.php2,107 ▲151.99 ▼0.0235.97 ▼7.9029.34 ▼6.29
Add New Post /wp-admin/post-new.php6,255 ▲4,74125.86 ▲8.34925.90 ▲276.9956.32 ▼1.45
Media Library /wp-admin/upload.php1,406 ▲184.22 ▼0.02104.61 ▲8.7645.77 ▲3.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • wpsbg_optionsframework
    • wpstoryboardgalleries
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-storyboard-gallery/admin/options-framework.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-storyboard-gallery/admin/options-sanitize.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpsbg_of_get_option() in wp-content/plugins/wp-storyboard-gallery/gallery.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-storyboard-gallery/wp-storyboard-galleries.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-storyboard-gallery/admin/options-medialibrary-uploader.php:9

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This is an example of editting a post.), #2 (This is an example of what is displayed on a post.)
You can take inspiration from this readme.txt

wp-storyboard-gallery/wp-storyboard-galleries.php 92% from 13 tests

Analyzing the main PHP file in "WP Storyboard Gallery" version 0.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-storyboard-gallery.php" instead of "wp-storyboard-galleries.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,261 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP84204272,158
JavaScript679104569
CSS3245502
Markdown115032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity120.00
▷ Minimum class complexity35.00
▷ Maximum class complexity205.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods49
▷ Static methods48.16%
▷ Public methods1734.69%
▷ Protected methods3061.22%
▷ Private methods24.08%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants55
▷ Global constants55100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
delete_thumb.png0.57KB0.62KB0.00%
admin/images/ico-delete.png0.70KB0.72KB0.00%