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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▲10.16ms] Passed 4 tests
A check of server-side resources used by Open Beacon MP4 Conversion and Compression
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 56.34 ▲10.76 |
Dashboard /wp-admin | 3.51 ▲0.21 | 69.62 ▲12.45 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 65.79 ▲18.44 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 103.31 ▼1.02 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 57.43 ▲21.41 |
View OB MP4 Conversions and Compressions /wp-admin/edit.php?post_type=ob_mp4_c_and_c | 3.48 | 54.33 |
OB MP4 Conversions and Compressions Categories /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c | 3.44 | 62.04 |
Server storage [IO: ▲5.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 12 new options
New WordPress options |
---|
ob_mp4_cc_category_children |
widget_theysaidso_widget |
db_upgraded |
ob_mp4_cc_ffmpeg_quality |
can_compress_scripts |
ob_mp4_cc_system_environment_section |
widget_recent-posts |
ob_mp4_cc_ffmpeg_path |
ob_mp4_cc_max_video_size |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Open Beacon MP4 Conversion and Compression
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.35 ▲0.16 | 1.77 ▼0.01 | 43.20 ▲0.23 |
Dashboard /wp-admin | 2,244 ▲70 | 5.53 ▼0.03 | 84.17 ▼19.27 | 40.38 ▼6.37 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.97 ▼0.08 | 35.64 ▲0.79 | 35.17 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.94 ▼0.10 | 645.51 ▼38.32 | 51.34 ▲1.05 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.28 ▲0.11 | 95.97 ▼9.22 | 45.38 ▼1.39 |
View OB MP4 Conversions and Compressions /wp-admin/edit.php?post_type=ob_mp4_c_and_c | 1,119 | 1.98 | 33.61 | 28.28 |
OB MP4 Conversions and Compressions Categories /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c | 2,114 | 2.30 | 30.98 | 36.23 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/open-beacon-mp4-conversion-and-compression/ob-mp4-conversion-and-compression.php:24
- > 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ob_mp4_cc_category&post_type=ob_mp4_c_and_c
- > Network (severe)
wp-content/plugins/open-beacon-mp4-conversion-and-compression/includes/js/radiotax.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The Open Beacon MP4 Conversion and Compression main page. This is where), #2 (The Settings page. FFmpeg settings are configured here.), #3 (The list page showing all the conversions and compressions that have been made.), #4 (The View Open Beacon MP4 Conversion and Compression page which shows a single video), #5 (The categories page.)
open-beacon-mp4-conversion-and-compression/ob-mp4-conversion-and-compression.php 85% from 13 tests
"Open Beacon MP4 Conversion and Compression" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 411 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-beacon-mp4-conversion-and-compression.php" instead of "ob-mp4-conversion-and-compression.php")
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
Success! There were no dangerous files found in this plugin782 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 222 | 464 | 675 |
JavaScript | 2 | 15 | 14 | 75 |
CSS | 1 | 8 | 0 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.14MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 104.72KB | 38.16KB | ▼ 63.56% |
screenshot-4.png | 453.20KB | 171.66KB | ▼ 62.12% |
screenshot-5.png | 125.00KB | 45.37KB | ▼ 63.70% |
screenshot-2.png | 192.21KB | 64.57KB | ▼ 66.41% |
screenshot-1.png | 117.15KB | 43.55KB | ▼ 62.83% |