Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼264.10ms] Passed 4 tests
Analyzing server-side resources used by DivX Web Player Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 40.20 ▲4.79 |
Dashboard /wp-admin | 3.08 ▲0.03 | 48.52 ▲14.05 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 46.83 ▲3.46 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.55 ▼1,056.56 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.87 ▼8.10 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by DivX Web Player Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,667 ▲85 | 16.00 ▲0.52 | 8.80 ▼0.37 | 48.40 ▼2.56 |
Dashboard /wp-admin | 2,942 ▲92 | 5.91 ▲0.09 | 139.08 ▼2.96 | 139.70 ▲30.59 |
Posts /wp-admin/edit.php | 2,726 ▲20 | 2.58 ▼0.11 | 67.77 ▼1.06 | 98.10 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,590 ▼66 | 18.51 ▲2.73 | 404.70 ▲34.24 | 117.18 ▼8.45 |
Media Library /wp-admin/upload.php | 1,732 ▼40 | 4.99 ▼0.00 | 139.83 ▼16.25 | 130.80 ▲5.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix 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/divx-web-player-generator/dvix-generator.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
- Screenshots: Add an image for screenshot #1 (generator page.)
divx-web-player-generator/dvix-generator.php 85% from 13 tests
The main PHP file in "DivX Web Player Generator" 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("divx-web-player-generator.php" instead of "dvix-generator.php")
- Description: The description should be shorter than 140 characters (currently 163 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
There were no executable files found in this plugin154 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 59 | 21 | 154 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 2 | |
▷ Named functions | 2 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.46KB | 0.54KB | ▼ 63.19% |
screenshot-4.png | 128.24KB | 35.26KB | ▼ 72.51% |
screenshot-2.png | 49.13KB | 20.61KB | ▼ 58.06% |
screenshot-3.png | 62.26KB | 22.38KB | ▼ 64.05% |
screenshot-1.png | 54.26KB | 18.78KB | ▼ 65.38% |