Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.42MB] [CPU: ▼37.25ms] Passed 4 tests
This is a short check of server-side resources used by Promociones TAP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 43.30 ▼0.81 |
Dashboard /wp-admin | 3.52 ▲0.22 | 20.39 ▼29.89 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 22.66 ▼38.33 |
Add New Post /wp-admin/post-new.php | 3.52 ▼2.36 | 19.46 ▼69.83 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 23.84 ▼10.93 |
Agregar nueva /wp-admin/post-new.php?post_type=promocion | 3.52 | 20.38 |
Informacion /wp-admin/admin.php?page=promociones-tap | 3.52 | 24.11 |
Categorias de Promociones /wp-admin/edit-tags.php?taxonomy=promociones&post_type=promocion | 3.53 | 21.98 |
Todas las promociones /wp-admin/edit.php?post_type=promocion | 3.53 | 21.44 |
Settings /wp-admin/admin.php?page=promociones-tap/settings | 3.52 | 19.81 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
promociones_tap_options_framework |
db_upgraded |
promociones-tap |
Browser metrics Passed 4 tests
An overview of browser requirements for Promociones TAP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,126 ▲391 | 15.45 ▲0.86 | 5.75 ▲3.95 | 51.30 ▼1.35 |
Dashboard /wp-admin | 2,425 ▲234 | 6.82 ▲1.95 | 139.02 ▲21.00 | 44.79 ▼1.71 |
Posts /wp-admin/edit.php | 2,342 ▲246 | 3.50 ▲1.52 | 53.33 ▲11.64 | 31.50 ▼8.95 |
Add New Post /wp-admin/post-new.php | 1,603 ▲61 | 23.41 ▲5.16 | 576.60 ▼66.03 | 33.87 ▼30.13 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 4.48 ▲0.29 | 84.60 ▼15.98 | 39.56 ▼4.67 |
Agregar nueva /wp-admin/post-new.php?post_type=promocion | 2,536 | 8.25 | 178.23 | 78.54 |
Informacion /wp-admin/admin.php?page=promociones-tap | 1,036 | 3.39 | 44.14 | 26.38 |
Categorias de Promociones /wp-admin/edit-tags.php?taxonomy=promociones&post_type=promocion | 1,519 | 3.51 | 43.51 | 29.15 |
Todas las promociones /wp-admin/edit.php?post_type=promocion | 1,338 | 3.66 | 51.29 | 27.22 |
Settings /wp-admin/admin.php?page=promociones-tap/settings | 1,157 | 3.47 | 47.67 | 63.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/promociones-tap/admin/includes/cmb/init.php+748
count(): Parameter must be an array or an object that implements Countable
- Zombie WordPress options detected upon uninstall: 8 options
- promociones_tap_options_framework
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- promociones-tap
- db_upgraded
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promociones-tap/settings
- > Warning in wp-content/plugins/promociones-tap/admin/includes/cmb/init.php+748
count(): Parameter must be an array or an object that implements Countable
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promociones-tap/settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/admin.php?page=promociones-tap/settings
- > Notice in wp-content/plugins/promociones-tap/admin/includes/options/class-options-media-uploader.php+62
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/promociones-tap/admin/includes/cmb/tests/phpunit/includes/bootstrap.php
- > /wp-content/plugins/promociones-tap/public/views/public.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/promociones-tap/admin/includes/cmb/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/promociones-tap/admin/includes/cmb/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/promociones-tap/admin/views/information.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/promociones-tap/admin/includes/cmb/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/promociones-tap/admin/includes/options/class-options-framework.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=promociones-tap/settings
- > Network (severe)
wp-content/plugins/promociones-tap/assets/banner-772x250.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: ads, promociones, anuncios, publicidad
promociones-tap/promociones-tap.php Passed 13 tests
The main PHP script in "Promociones TAP" version 1.0.0 is automatically included on every request by WordPress
54 characters long description:
Plugin para publicacion de promociones y/o publicidad.
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
No dangerous file extensions were detected7,472 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 955 | 2,185 | 3,481 |
JavaScript | 15 | 442 | 471 | 2,678 |
CSS | 7 | 69 | 27 | 900 |
Markdown | 3 | 88 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 34.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 49 | 21.40% |
▷ Public methods | 214 | 93.45% |
▷ Protected methods | 2 | 0.87% |
▷ Private methods | 13 | 5.68% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/cmb/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/includes/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/includes/cmb/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/includes/cmb/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/cmb/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |