Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/webcupon/sections/paginas.php+25
Trying to get property 'ID' of non-object
Server metrics [RAM: ▼0.21MB] [CPU: ▼164.09ms] Passed 4 tests
This is a short check of server-side resources used by Web Cupón
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼1.05 | 6.16 ▼31.32 |
Dashboard /wp-admin | 3.13 ▲0.08 | 40.83 ▼26.45 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 49.76 ▼8.46 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 96.04 ▼576.20 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 34.85 ▼22.37 |
Información /wp-admin/admin.php?page=wp_webcupon_info | 3.04 | 29.90 |
Web Cupón /wp-admin/admin.php?page=wp_webcupon | 3.04 | 34.12 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_webcuponoimage_widget |
widget_webcupon_widget |
Browser metrics Passed 4 tests
Web Cupón: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,876 ▲280 | 15.96 ▲0.45 | 13.46 ▲1.74 | 52.86 ▼17.17 |
Dashboard /wp-admin | 2,996 ▲65 | 5.93 ▼0.20 | 144.73 ▼21.16 | 122.56 ▼16.07 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.73 ▲0.04 | 66.49 ▼4.10 | 90.39 ▼8.65 |
Add New Post /wp-admin/post-new.php | 1,705 ▲22 | 15.73 ▼3.08 | 444.70 ▲59.09 | 120.92 ▲14.10 |
Media Library /wp-admin/upload.php | 1,852 ▲107 | 4.98 ▼0.00 | 171.56 ▼2.99 | 183.96 ▲47.90 |
Información /wp-admin/admin.php?page=wp_webcupon_info | 1,127 | 2.08 | 61.01 | 82.37 |
Web Cupón /wp-admin/admin.php?page=wp_webcupon | 1,186 | 2.10 | 58.24 | 118.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 2 options
- widget_webcupon_widget
- widget_webcuponoimage_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/webcupon/trunk/widget.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webcupon/sections/map.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webcupon/webcupon.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_page_by_title() in wp-content/plugins/webcupon/trunk/sections/paginas.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/webcupon/widget.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webcupon/widget-noimage.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webcupon/trunk/widget-noimage.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_page_by_title() in wp-content/plugins/webcupon/sections/paginas.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webcupon/trunk/sections/map.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webcupon/sections/search.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Página de ajustes del plugin), #2 (Widgets de Oferta con y sin imagen), #3 (Resultado del Cupón de Descuento), #4 (Página Directorio de Ofertas generado por código shortcode), #5 (Página Mapa de Ofertas generado por código shortcode)
webcupon/webcupon.php 92% from 13 tests
This is the main PHP file of "Web Cupón" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 443 characters long)
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
Good job! No executable or dangerous file extensions detected515 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 68 | 134 | 284 |
PO File | 2 | 42 | 42 | 230 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 1.50MB with 1.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 125.12KB | 45.26KB | ▼ 63.83% |
images/icocupon.png | 21.44KB | 0.83KB | ▼ 96.11% |
screenshot-2.png | 176.70KB | 56.36KB | ▼ 68.10% |
screenshot-3.png | 95.69KB | 28.55KB | ▼ 70.16% |
images/logo-wp-webcupon.png | 90.71KB | 29.14KB | ▼ 67.88% |