Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/latest-video-post-widget/latest_video_post_widget.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; codeflavor_latestvideopost has a deprecated constructor
Server metrics [RAM: ▼2.19MB] [CPU: ▼61.80ms] Passed 4 tests
This is a short check of server-side resources used by Latest Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.64 | 4.73 ▼43.89 |
Dashboard /wp-admin | 2.11 ▼1.52 | 5.98 ▼61.94 |
Posts /wp-admin/edit.php | 2.11 ▼1.57 | 5.13 ▼45.81 |
Add New Post /wp-admin/post-new.php | 2.11 ▼4.04 | 5.58 ▼95.56 |
Media Library /wp-admin/upload.php | 2.11 ▼1.38 | 5.43 ▼36.82 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_codeflavor-latest-video-post |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Latest Video
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.27 ▼0.08 | 1.99 ▼0.13 | 43.92 ▲1.77 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.05 | 92.22 ▼1.78 | 41.76 ▲0.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.05 | 39.19 ▲2.14 | 34.76 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.20 ▼0.13 | 677.36 ▼12.37 | 52.85 ▲1.14 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▲0.04 | 114.97 ▲4.18 | 46.28 ▼1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/latest-video-post-widget/latest_video_post_widget.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; codeflavor_latestvideopost has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_codeflavor-latest-video-post
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× 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/latest-video-post-widget/latest_video_post_widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: video, wordpress, designer, plugin, marketer...
latest-video-post-widget/latest_video_post_widget.php 92% from 13 tests
The principal PHP file in "Latest Video" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("latest-video-post-widget.php" instead of "latest_video_post_widget.php")
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
Success! There were no dangerous files found in this plugin100 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 10 | 99 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ 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
PNG images were not found in this plugin