Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.40ms] Passed 4 tests
An overview of server-side resources used by WP GIF Player - Play & Pause
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.18 ▲1.47 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.95 ▼14.61 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.32 ▲3.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.18 ▼10.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.47 ▼1.50 |
WP GIF Player /wp-admin/options-general.php?page=wp-gif-player | 3.24 | 31.25 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP GIF Player - Play & Pause: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.00 | 1.80 ▲0.19 | 44.09 ▲2.28 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▼0.08 | 89.99 ▼1.14 | 42.51 ▲3.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 36.26 ▼1.00 | 34.00 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,665 | 18.98 ▲0.63 | 907.94 ▲221.40 | 55.39 ▼19.60 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.22 ▲0.05 | 98.71 ▲3.03 | 41.58 ▼3.15 |
WP GIF Player /wp-admin/options-general.php?page=wp-gif-player | 837 | 2.01 | 23.36 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: gif, player
wp-gif-player-play-and-pause/wp-gif-player-play-and-pause.php Passed 13 tests
"WP GIF Player - Play & Pause" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
Insert GIFs that can be played and paused into your WordPress posts and pages using shortcodes and Gutenberg blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,951 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 300 | 795 | 996 |
JavaScript | 6 | 216 | 235 | 896 |
CSS | 1 | 8 | 0 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 34 | 79.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 20.93% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin