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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.65 ▼3.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.90 ▼7.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.22 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.29 ▼3.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.18 ▼0.18 | 1.73 ▼0.19 | 45.03 ▼4.36 |
Dashboard /wp-admin | 2,202 ▲22 | 5.65 ▼0.02 | 92.57 ▼8.77 | 42.15 ▼5.04 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.02 | 34.75 ▼5.71 | 33.63 ▼5.22 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,736 | 26.00 ▲3.09 | 919.56 ▲235.44 | 55.62 ▼0.50 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.41 ▲0.29 | 109.91 ▼25.60 | 46.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
- > 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 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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 140 | 37 | 786 |
PHP | 3 | 79 | 11 | 107 |
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 code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
screenshot-2.png | 38.89KB | 14.31KB | ▼ 63.20% |
screenshot-1.png.png | 217.01KB | 78.00KB | ▼ 64.06% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |