Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▼0.97ms] 75% from 4 tests
This is a short check of server-side resources used by Dropwp Generator
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 676.54ms on /wp-admin/plugins.php?page=dropwp_generator)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 42.50 ▼1.59 |
Dashboard /wp-admin | 3.77 ▲0.47 | 47.80 ▼5.68 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 50.31 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 88.59 ▼0.56 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 40.62 ▲6.55 |
Dropwp Generator /wp-admin/plugins.php?page=dropwp_generator | 3.71 | 676.54 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Dropwp Generator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲132 | 13.30 ▼1.07 | 1.58 ▼0.42 | 41.86 ▼2.47 |
Dashboard /wp-admin | 2,298 ▲110 | 4.86 ▼0.00 | 99.15 ▼23.75 | 82.11 ▲37.47 |
Posts /wp-admin/edit.php | 2,189 ▲97 | 2.21 ▲0.08 | 37.88 ▲0.17 | 38.21 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,599 ▲85 | 17.59 ▲0.14 | 703.92 ▲3.29 | 53.03 ▼14.85 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 4.15 ▼0.15 | 96.98 ▼11.49 | 79.61 ▲28.16 |
Dropwp Generator /wp-admin/plugins.php?page=dropwp_generator | 1,404 | 2.21 | 23.99 | 46.97 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/plugins.php?page=dropwp_generator
- > Notice in wp-content/plugins/dropwp-generator/includes/class-dropwp-helper.php+29
Undefined offset: 1
- > GET request to /wp-admin/plugins.php?page=dropwp_generator
- > Notice in wp-content/plugins/dropwp-generator/includes/class-dropwp-helper.php+31
Undefined offset: 2
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dropwp-generator/dropwp_generator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dropwp-generator/partials/_notices.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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: helper, auto-install, woocomerce
dropwp-generator/dropwp_generator.php 85% from 13 tests
The main PHP script in "Dropwp Generator" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dropwp-generator.php" instead of "dropwp_generator.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin2,754 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 511 | 1,509 | 2,009 |
PO File | 1 | 375 | 759 | 330 |
Markdown | 3 | 70 | 0 | 317 |
CSS | 1 | 9 | 0 | 98 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 39.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 7 | 7.29% |
▷ Public methods | 76 | 79.17% |
▷ Protected methods | 20 | 20.83% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/dropwp.png | 0.98KB | 1.24KB | 0.00% |
img/logo.png | 5.62KB | 3.61KB | ▼ 35.74% |
img/close.png | 0.82KB | 0.78KB | ▼ 4.64% |
img/abrir-ticket.png | 0.57KB | 0.43KB | ▼ 25.47% |
img/ir-a-manuales.png | 0.58KB | 0.57KB | ▼ 3.34% |