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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.41ms] Passed 4 tests
Analyzing server-side resources used by АвтоОфис.Видео
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.34 ▼1.01 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.31 ▲1.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.84 ▼1.82 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.31 ▼2.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.84 ▲0.12 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 168 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for АвтоОфис.Видео
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.29 ▼0.93 | 1.81 ▲0.07 | 41.35 ▼11.15 |
Dashboard /wp-admin | 2,218 ▲30 | 5.82 ▲0.92 | 97.91 ▼25.89 | 87.86 ▲49.76 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.98 ▼0.04 | 37.69 ▲3.44 | 33.66 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 21.16 ▼2.41 | 762.07 ▲12.03 | 55.65 ▼6.36 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.14 ▼0.07 | 113.23 ▲6.28 | 79.20 ▲29.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aoplayer/aoplayer_plugin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/aoplayer/views/admin_page_player.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aoplayer/config.php:17
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/aoplayer/views/page_admin/__player.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: aoplayer
aoplayer/aoplayer_plugin.php 85% from 13 tests
The primary PHP file in "АвтоОфис.Видео" version 1.0.15 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aoplayer.php" instead of "aoplayer_plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 541 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin24,052 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 72 | 3,152 | 653 | 16,287 |
SVG | 13 | 0 | 2 | 3,035 |
CSS | 38 | 288 | 67 | 2,875 |
PHP | 8 | 307 | 105 | 1,692 |
PO File | 1 | 75 | 76 | 163 |
PHP code Passed 2 tests
An overview 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.62 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 5 | 16.13% |
▷ Public methods | 21 | 67.74% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 9 | 29.03% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
15 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/mediaelement/plugins/jump-forward/jumpforward.png | 1.22KB | 0.72KB | ▼ 40.69% |
assets/img/logo.png | 6.18KB | 2.01KB | ▼ 67.51% |
assets/img/icon.png | 0.81KB | 0.76KB | ▼ 6.38% |
assets/mediaelement/player/mejs-controls.png | 14.38KB | 6.27KB | ▼ 56.42% |
assets/mediaelement/plugins/playlist-rocco/mep-playlist-icons.png | 9.34KB | 2.68KB | ▼ 71.31% |