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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.44 ▼1.93 |
Dashboard /wp-admin | 3.39 ▲0.09 | 26.57 ▼19.94 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 24.14 ▼30.77 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.50 | 25.05 ▼75.66 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲169 | 13.65 ▼0.70 | 4.68 ▲2.79 | 41.72 ▼3.97 |
Dashboard /wp-admin | 2,227 ▲35 | 4.84 ▼1.26 | 99.82 ▼6.08 | 39.11 ▼1.17 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 1.99 ▼0.02 | 35.97 ▼7.90 | 29.34 ▼6.29 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,741 | 25.86 ▲8.34 | 925.90 ▲276.99 | 56.32 ▼1.45 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.22 ▼0.02 | 104.61 ▲8.76 | 45.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 420 | 427 | 2,158 |
JavaScript | 6 | 79 | 104 | 569 |
CSS | 3 | 24 | 5 | 502 |
Markdown | 1 | 15 | 0 | 32 |
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 code | 0.37 |
Average class complexity | 120.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 17 | 34.69% |
▷ Protected methods | 30 | 61.22% |
▷ Private methods | 2 | 4.08% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 55 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
delete_thumb.png | 0.57KB | 0.62KB | 0.00% |
admin/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |