Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼147.44ms] Passed 4 tests
Server-side resources used by AIBuy Simple Content Video Player
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 38.06 ▲16.41 |
Dashboard /wp-admin | 3.12 ▲0.07 | 44.42 ▼2.35 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 42.37 ▲6.83 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 89.68 ▼584.69 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 31.56 ▼9.55 |
AIBuy Player /wp-admin/options-general.php?page=aibuy_player | 3.03 | 29.33 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by AIBuy Simple Content Video Player
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲223 | 16.29 ▲0.36 | 9.68 ▼0.15 | 48.34 ▼2.16 |
Dashboard /wp-admin | 2,996 ▲65 | 6.11 ▲0.05 | 139.12 ▼21.93 | 114.95 ▼2.33 |
Posts /wp-admin/edit.php | 2,746 ▲10 | 2.69 ▲0.00 | 68.35 ▲0.28 | 88.00 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,906 ▲230 | 19.15 ▼0.04 | 369.39 ▼3.47 | 111.19 ▲2.77 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.03 ▲0.01 | 150.33 ▲6.84 | 120.53 ▼4.86 |
AIBuy Player /wp-admin/options-general.php?page=aibuy_player | 1,089 | 2.09 | 57.43 | 83.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aibuy-player/admin/partials/aibuy_simple_content_video_player-admin-display.php
- > /wp-content/plugins/aibuy-player/public/partials/aibuy_simple_content_video_player-public-display.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: successSubmit in wp-content/plugins/aibuy-player/admin/index.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/aibuy-player/admin/index.php on line 18
- > PHP Notice
Undefined variable: values in wp-content/plugins/aibuy-player/admin/index.php on line 18
- > PHP Notice
Undefined variable: errorSubmit in wp-content/plugins/aibuy-player/admin/index.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Aibuy_simple_content_video_player' not found in wp-content/plugins/aibuy-player/admin/index.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Screenshots: These screenshots do not have images: #1 (The plugin add button to the editor), #2 (Inserts a video player in public part), #3 (Page with settings)
aibuy-player/aibuy_simple_content_video_player.php 85% from 13 tests
Analyzing the main PHP file in "AIBuy Simple Content Video Player" version 1.0.0
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aibuy-player.php" instead of "aibuy_simple_content_video_player.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin534 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 131 | 536 | 279 |
JavaScript | 3 | 38 | 89 | 189 |
CSS | 2 | 12 | 16 | 66 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
5 PNG files occupy 0.65MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/video.png | 1.24KB | 0.55KB | ▼ 55.86% |
screenshot-3.png | 113.31KB | 38.94KB | ▼ 65.64% |
screenshot-2.png | 401.23KB | 142.29KB | ▼ 64.54% |
screenshot-1.png | 145.60KB | 51.53KB | ▼ 64.61% |
admin/js/video-icon.png | 1.18KB | 0.52KB | ▼ 55.51% |