Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.74MB] [CPU: ▲3.69ms] Passed 4 tests
Server-side resources used by dPlayer - Video Player for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 52.38 ▼0.28 |
Dashboard /wp-admin | 4.05 ▲0.74 | 63.07 ▲8.86 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 63.12 ▲12.43 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.75 | 98.43 ▲1.80 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 46.29 ▲4.37 |
Add New dPlayer /wp-admin/post-new.php?post_type=dplayer | 4.10 | 67.71 |
dPlayers /wp-admin/edit.php?post_type=dplayer | 4.11 | 53.96 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by dPlayer - Video Player for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.69 ▲0.15 | 1.78 ▼0.08 | 44.80 ▲4.00 |
Dashboard /wp-admin | 2,222 ▲42 | 5.62 ▼0.04 | 97.35 ▲8.68 | 46.08 ▲1.87 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▲0.03 | 39.31 ▲1.00 | 34.81 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.20 ▲2.25 | 700.95 ▼31.50 | 59.08 ▲1.44 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.19 ▲0.06 | 99.36 ▼8.24 | 43.61 ▼4.58 |
Add New dPlayer /wp-admin/post-new.php?post_type=dplayer | 2,157 | 5.52 | 105.79 | 55.22 |
dPlayers /wp-admin/edit.php?post_type=dplayer | 1,298 | 3.84 | 52.37 | 29.01 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dplayer/dplayer.php:15
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dplayer/dplayer.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: No descriptions were found for these screenshots #1, #2 in dplayer/assets to your readme.txt
dplayer/dplayer.php 92% from 13 tests
The main file in "dPlayer - Video Player for WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Good job! No executable or dangerous file extensions detected33,405 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 3,346 | 1,455 | 14,070 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
Sass | 15 | 952 | 3 | 4,803 |
CSS | 4 | 278 | 478 | 4,038 |
JavaScript | 7 | 1,254 | 348 | 4,002 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 25.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 42 | 16.87% |
▷ Public methods | 249 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |