Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Slideshow Captions for Jetpack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.00 ▼1.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.66 ▼2.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.27 ▲2.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.30 ▼9.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▲0.54 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Slideshow Captions for Jetpack
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.69 ▼0.68 | 5.27 ▲3.25 | 46.78 ▼2.51 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.03 | 108.17 ▼1.75 | 41.42 ▼2.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 40.25 ▼0.09 | 36.29 ▲2.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.31 ▲0.17 | 675.39 ▲2.32 | 58.56 ▼1.61 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.03 | 95.73 ▼8.00 | 40.49 ▼2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× 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/jetpack-slideshow-caption/jetpack-slideshow-caption.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Caption is displayed below the photo.)
- Plugin Name: You should set the name of your plugin on the first line (
=== Slideshow Captions for Jetpack ===
)
jetpack-slideshow-caption/jetpack-slideshow-caption.php Passed 13 tests
Analyzing the main PHP file in "Slideshow Captions for Jetpack" version 1.1.0
53 characters long description:
Modifies Jetpack's default slideshow caption feature.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected338 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 29 | 10 | 195 |
CSS | 1 | 15 | 3 | 115 |
PHP | 1 | 7 | 16 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.52MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/slideshow-controls.png | 0.99KB | 1.21KB | 0.00% |
screenshot-1.png | 530.81KB | 194.33KB | ▼ 63.39% |
img/slideshow-controls-2x.png | 1.90KB | 2.37KB | 0.00% |