Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.11ms] Passed 4 tests
A check of server-side resources used by CP Media Player - Audio Player and Video Player
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 39.55 ▲4.13 |
Dashboard /wp-admin | 3.59 ▲0.29 | 45.35 ▼0.98 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 46.58 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 82.55 ▼19.44 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 34.12 ▲0.47 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 67 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cpmp_player |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
installed_audio-and-video-player |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CP Media Player - Audio Player and Video Player
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.73 ▼0.66 | 1.64 ▼0.11 | 41.58 ▼1.72 |
Dashboard /wp-admin | 2,226 ▲38 | 5.07 ▲0.17 | 99.34 ▼5.45 | 36.96 ▼5.44 |
Posts /wp-admin/edit.php | 2,109 ▲38 | 2.04 ▲0.02 | 35.37 ▼1.86 | 31.20 ▼3.80 |
Add New Post /wp-admin/post-new.php | 6,218 ▲4,685 | 19.28 ▼3.77 | 880.68 ▲267.64 | 37.46 ▼9.61 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.22 ▼0.02 | 100.79 ▼0.65 | 43.08 ▲2.62 |
Audio And Video Player /wp-admin/codepeople-media-player.php | 26 | 0.44 | 0.08 | 13.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cpmp_player
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- installed_audio-and-video-player
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-and-video-player/banner.php:105
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Control_Button' not found in wp-content/plugins/audio-and-video-player/builders/elementor-control.pb.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-and-video-player/banner.php:105
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/codepeople-media-player.php
- > Network (severe)
wp-admin/codepeople-media-player.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
audio-and-video-player/codepeople-media-player.php 77% from 13 tests
The primary PHP file in "CP Media Player - Audio Player and Video Player" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("audio-and-video-player.php" instead of "codepeople-media-player.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 263 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,487 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 236 | 101 | 1,849 |
JavaScript | 9 | 230 | 78 | 1,757 |
CSS | 9 | 117 | 28 | 1,313 |
PO File | 1 | 142 | 144 | 335 |
HTML | 1 | 0 | 0 | 177 |
INI | 5 | 15 | 5 | 50 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 35.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 2 | 3.28% |
▷ Public methods | 47 | 77.05% |
▷ Protected methods | 6 | 9.84% |
▷ Private methods | 8 | 13.11% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
skins/classic-skin/controls-classic.png | 14.61KB | 5.51KB | ▼ 62.28% |
images/cpmp_video.png | 0.26KB | 0.10KB | ▼ 61.28% |
images/cpmp_gallery.png | 0.29KB | 0.14KB | ▼ 52.51% |
images/icon-video.png | 3.50KB | 1.46KB | ▼ 58.18% |
skins/device-player-skin/thumbnail.png | 2.91KB | 1.94KB | ▼ 33.24% |