Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static
Server metrics [RAM: ▼1.80MB] [CPU: ▼56.53ms] Passed 4 tests
This is a short check of server-side resources used by VideoADShtml5
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.27 | 5.67 ▼36.56 |
Dashboard /wp-admin | 2.22 ▼1.13 | 6.10 ▼56.38 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.19 ▼45.07 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.06 ▼88.12 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.12 ▼27.33 |
VideoADShtml5 /wp-admin/options-general.php?page=videhtml5ads-settings | 2.22 | 6.52 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for VideoADShtml5
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲133 | 13.85 ▼0.42 | 8.89 ▲6.80 | 36.74 ▼7.63 |
Dashboard /wp-admin | 2,199 ▲21 | 5.63 ▼0.06 | 86.84 ▼25.63 | 40.44 ▼8.41 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▲0.03 | 37.18 ▲1.72 | 36.69 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.41 ▲0.53 | 670.83 ▼19.48 | 57.64 ▲8.59 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.06 | 101.35 ▼5.96 | 47.65 ▲0.88 |
VideoADShtml5 /wp-admin/options-general.php?page=videhtml5ads-settings | 921 | 2.01 | 26.05 | 35.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=videhtml5ads-settings
- > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static
- > GET request to /wp-admin/options-general.php?page=videhtml5ads-settings
- > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
Undefined property: VIDEO_HTML5_ADS::$plugin_version
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Preview of the VideoADShtml5 video player), #2 (Video ADS html 5 video Player settings in template), #3 (Example of use in adding material)
videoadshtml5/videoadshtml5.php 85% from 13 tests
Analyzing the main PHP file in "VideoADShtml5" version 2.3.6
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin1,008 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 124 | 44 | 492 |
JavaScript | 1 | 88 | 18 | 318 |
CSS | 1 | 26 | 30 | 156 |
XML | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
3 PNG files occupy 0.34MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 51.17KB | 20.07KB | ▼ 60.77% |
screenshot-1.png | 283.51KB | 145.89KB | ▼ 48.54% |
screenshot-3.png | 17.68KB | 8.24KB | ▼ 53.41% |