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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests
Server-side resources used by Able Player for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.82 ▼3.68 |
Dashboard /wp-admin | 3.32 ▼0.03 | 56.30 ▼11.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.72 ▲2.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.64 ▼0.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.92 ▼2.03 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Able Player for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.36 ▼0.19 | 2.07 ▼0.00 | 45.84 ▲2.12 |
Dashboard /wp-admin | 2,195 ▲15 | 5.67 ▲0.06 | 91.05 ▼8.47 | 41.87 ▼3.23 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▲0.01 | 39.01 ▲3.39 | 35.23 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,546 ▲15 | 23.18 ▲0.09 | 651.03 ▼8.11 | 53.21 ▼0.64 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.25 ▼0.01 | 97.34 ▼3.18 | 42.74 ▼4.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-able-player/able-player-for-wp.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function able_media_type() in wp-content/plugins/wp-able-player/markup.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-able-player/able-player-for-wp.php 92% from 13 tests
The main PHP script in "Able Player for WordPress" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-able-player.php" instead of "able-player-for-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin32,346 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 5,371 | 4,327 | 30,634 |
CSS | 2 | 53 | 233 | 952 |
Markdown | 1 | 145 | 0 | 508 |
SVG | 2 | 0 | 0 | 156 |
PHP | 2 | 30 | 19 | 74 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
57 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ableplayer/button-icons/white/chapters.png | 0.24KB | 0.21KB | ▼ 11.20% |
ableplayer/button-icons/black/rewind.png | 0.26KB | 0.21KB | ▼ 16.35% |
ableplayer/button-icons/black/volume-loud.png | 0.39KB | 0.31KB | ▼ 21.30% |
ableplayer/button-icons/white/descriptions.png | 0.42KB | 0.33KB | ▼ 23.22% |
ableplayer/button-icons/white/sign.png | 0.41KB | 0.33KB | ▼ 18.91% |