Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼295.49ms] Passed 4 tests
This is a short check of server-side resources used by Adapter Responsive Video
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 57.23 ▲6.68 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.07 ▲0.50 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.80 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 95.73 ▼1,183.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.77 ▲1.66 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_adapter_responsive_video |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Adapter Responsive Video
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲41 | 15.86 ▲0.22 | 8.12 ▲1.86 | 2.24 ▼0.16 |
Dashboard /wp-admin | 2,889 ▲35 | 5.99 ▼0.22 | 119.83 ▼11.81 | 154.98 ▼2.30 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.24 ▲0.01 | 62.38 ▼0.83 | 140.15 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.66 ▲0.53 | 460.08 ▲39.30 | 156.12 ▲2.39 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▲0.01 | 139.08 ▼17.36 | 182.86 ▼11.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_adapter_responsive_video
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adapter-responsive-video/php/class-adapter-responsive-video-widget.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adapter-responsive-video/php/class-adapter-responsive-video-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
6 plugin tags: responsive, post, mobile, embed, bootstrap...
adapter-responsive-video/adapter-responsive-video.php 92% from 13 tests
The primary PHP file in "Adapter Responsive Video" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,979 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 3,833 |
PHP | 3 | 35 | 132 | 124 |
XML | 1 | 5 | 2 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
PNG images were not found in this plugin