Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲301.96ms] 75% from 4 tests
An overview of server-side resources used by Descuentoz
The following require your attention
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 301.96ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 324.83 ▲281.22 |
Dashboard /wp-admin | 3.32 ▲0.02 | 340.56 ▲290.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 377.75 ▲330.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 389.83 ▲306.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 362.59 ▲329.49 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Descuentoz
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲59 | 14.80 ▲0.51 | 1.62 ▼0.28 | 36.81 ▼12.65 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼0.01 | 109.89 ▼7.76 | 40.35 ▼7.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 34.50 ▼7.67 | 36.21 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 21.10 ▼2.15 | 617.13 ▼33.75 | 54.42 ▼1.34 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.15 ▼0.03 | 92.01 ▼20.77 | 40.19 ▼14.57 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/descuentoz/descuentoz.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Requires php: Invalid plugin version format
- Screenshots: Please describe screenshot #4 in descuentoz/assets to your readme.txt
descuentoz/descuentoz.php Passed 13 tests
Analyzing the main PHP file in "Descuentoz" version 0.9.2
95 characters long description:
Genera URLs para cupones de descuentos que pueden ser publicados en el directorio de descuentoz
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
Good job! No executable or dangerous file extensions detected1,371 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 335 | 257 | 1,304 |
JavaScript | 1 | 10 | 12 | 44 |
CSS | 1 | 4 | 0 | 13 |
JSON | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 13 | 22.03% |
▷ Public methods | 51 | 86.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 13.56% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected