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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.11ms] Passed 4 tests
Analyzing server-side resources used by PoD Plugin for WooCommerce - Mediamodifier
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.75 ▼0.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.97 ▼5.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.65 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.59 ▼10.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.62 ▼1.13 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PoD Plugin for WooCommerce - Mediamodifier
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.69 ▼0.32 | 43.67 ▲1.55 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▲0.01 | 87.18 ▼6.49 | 41.80 ▲1.78 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.06 | 35.43 ▼0.31 | 36.45 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.04 ▲0.03 | 693.00 ▲86.07 | 78.53 ▲17.74 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.04 | 97.14 ▼5.77 | 43.36 ▲1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mediamodifier-for-woocommerce/partials/pod-templates.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mediamodifier-for-woocommerce/config/main.php:22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediamodifier-for-woocommerce/mediamodifier-pod-for-woocommerce.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/mediamodifier-for-woocommerce/mediamodifier-pod-for-woocommerce.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mediamodifier-for-woocommerce/mediamodifier-pod-for-woocommerce.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mediamodifier-for-woocommerce/partials/pod-main-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% 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 your attention:
- Screenshots: Screenshot #1 (-) image missing
mediamodifier-for-woocommerce/mediamodifier-pod-for-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "PoD Plugin for WooCommerce - Mediamodifier" version 1.0
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("mediamodifier-for-woocommerce.php" instead of "mediamodifier-pod-for-woocommerce.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.1" instead of "2.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,779 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 457 | 281 | 1,710 |
PO File | 1 | 18 | 22 | 52 |
CSS | 1 | 0 | 0 | 14 |
JavaScript | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.35 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 19 | 15.20% |
▷ Public methods | 110 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 12.00% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 4 | 36.36% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon-32x32.png | 0.60KB | 0.70KB | 0.00% |