Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.65ms] Passed 4 tests
Analyzing server-side resources used by Able Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.23 ▲0.41 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.18 ▼53.68 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.85 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 111.04 ▼1,127.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.50 ▼1.78 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Able Player
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,910 ▲166 | 15.71 ▲0.42 | 11.01 ▲4.80 | 2.94 ▲0.30 |
Dashboard /wp-admin | 2,892 ▲31 | 6.15 ▼0.02 | 133.99 ▲0.89 | 150.84 ▼12.15 |
Posts /wp-admin/edit.php | 2,694 ▲24 | 3.23 ▼0.03 | 66.99 ▼3.31 | 144.69 ▼49.35 |
Add New Post /wp-admin/post-new.php | 1,711 ▲21 | 21.35 ▲0.20 | 427.52 ▼25.89 | 192.58 ▲28.92 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.53 ▲0.06 | 142.62 ▲9.58 | 241.76 ▲50.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ableplayer/ableplayer.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: video, audio, accessibility, html5, media
ableplayer/ableplayer.php 92% from 13 tests
The main PHP file in "Able Player" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin27,627 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 5,004 | 4,487 | 26,258 |
CSS | 2 | 52 | 233 | 1,078 |
SVG | 2 | 0 | 0 | 156 |
PHP | 1 | 28 | 60 | 135 |
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.60 |
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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
57 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
button-icons/white/help.png | 0.27KB | 0.25KB | ▼ 7.53% |
button-icons/black/fullscreen-expand.png | 0.28KB | 0.24KB | ▼ 13.54% |
button-icons/white/fullscreen-expand.png | 0.30KB | 0.24KB | ▼ 19.16% |
button-icons/white/stop.png | 0.14KB | 0.13KB | ▼ 3.55% |
button-icons/white/faster.png | 0.18KB | 0.16KB | ▼ 14.81% |