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.58MB] [CPU: ▼21.89ms] Passed 4 tests
Analyzing server-side resources used by Presto Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.33 ▲1.62 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.08 ▼17.64 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.87 ▼1.25 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 38.71 ▼68.05 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.12 ▼0.60 |
Presto Media /wp-admin/options-general.php?page=prestomedia | 3.29 | 31.60 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
prestomedia-auth-secret |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Presto Media
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.72 ▼0.65 | 1.80 ▼0.16 | 43.18 ▼9.21 |
Dashboard /wp-admin | 2,217 ▲29 | 4.91 ▼0.99 | 108.01 ▲4.16 | 41.97 ▼2.68 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.20 ▲0.23 | 40.09 ▼3.56 | 34.60 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,521 ▼13 | 17.42 ▼5.85 | 616.90 ▼66.21 | 57.27 ▲8.35 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.28 ▲0.09 | 101.56 ▼1.08 | 43.56 ▼0.17 |
Presto Media /wp-admin/options-general.php?page=prestomedia | 819 | 1.79 | 25.83 | 27.67 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- prestomedia-auth-secret
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please 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/presto-delivery/class-presto-media-post-publish.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/presto-delivery/class-presto-media-post-publish.php:127
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/presto-delivery/admin-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: publishing, delivery, content, presto media
presto-delivery/presto-media-api.php 77% from 13 tests
The primary PHP file in "Presto Media" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("presto-delivery.php" instead of "presto-media-api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin718 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 363 | 644 |
JavaScript | 2 | 7 | 6 | 49 |
JSON | 3 | 0 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 11 | 32.35% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.88% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/assetsbanner-772x250-rtl.png | 91.58KB | 38.79KB | ▼ 57.65% |
assets/icon-256x256.png | 11.17KB | 4.51KB | ▼ 59.62% |
assets/assetsbanner-1544x500-rtl.png | 247.85KB | 111.22KB | ▼ 55.13% |
assets/icon-128x128.png | 5.61KB | 2.59KB | ▼ 53.79% |