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.10MB] [CPU: ▼6.29ms] Passed 4 tests
Analyzing server-side resources used by Card flip image slideshow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.47 ▼6.44 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.04 ▼3.74 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 55.60 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.04 ▼12.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.58 ▼2.41 |
Card flip slideshow /wp-admin/options-general.php?page=card-flip-image-slideshow | 3.34 | 33.93 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cardflip_slideshow |
New WordPress options |
---|
widget_card-flip-image-slideshow |
card-flip-image-slideshow |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Card flip image slideshow
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.45 ▼0.85 | 8.48 ▲6.46 | 40.43 ▼4.37 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.05 | 94.93 ▲0.36 | 42.13 ▲0.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.00 | 40.03 ▲2.26 | 38.33 ▲6.80 |
Add New Post /wp-admin/post-new.php | 1,529 ▼20 | 17.66 ▼5.56 | 668.37 ▼78.39 | 55.11 ▲4.90 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.20 ▼0.01 | 137.48 ▲34.99 | 48.70 ▲2.81 |
Card flip slideshow /wp-admin/options-general.php?page=card-flip-image-slideshow | 1,036 | 2.01 | 27.04 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_card-flip-image-slideshow
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/card-flip-image-slideshow/card-flip-image-slideshow.php
- > /wp-content/plugins/card-flip-image-slideshow/pages/image-management-show.php
- > /wp-content/plugins/card-flip-image-slideshow/pages/image-management-add.php
- > /wp-content/plugins/card-flip-image-slideshow/pages/image-management-edit.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: slideshow, widget, plugin, image, gallery
card-flip-image-slideshow/card-flip-image-slideshow.php Passed 13 tests
The primary PHP file in "Card flip image slideshow" version 1.5 is used by WordPress to initiate all plugin functionality
83 characters long description:
Card flip image slideshow looks flipping card in the page. It uses hinge animation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,284 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 133 | 30 | 896 |
JavaScript | 2 | 21 | 0 | 203 |
PO File | 1 | 50 | 75 | 115 |
CSS | 1 | 9 | 0 | 70 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 17 | 73.91% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/image-icon.png | 2.98KB | 0.54KB | ▼ 81.86% |