78% dropwp-generator

Code Review | Dropwp Generator

WordPress plugin Dropwp Generator scored78%from 54 tests.

About plugin

  • Plugin page: dropwp-generator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2016
  • Latest release: Mar 9, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: dropwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,340 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4342.50 ▼1.59
Dashboard /wp-admin3.77 ▲0.4747.80 ▼5.68
Posts /wp-admin/edit.php3.82 ▲0.4750.31 ▲3.96
Add New Post /wp-admin/post-new.php6.29 ▲0.4088.59 ▼0.56
Media Library /wp-admin/upload.php3.64 ▲0.4140.62 ▲6.55
Dropwp Generator /wp-admin/plugins.php?page=dropwp_generator3.71676.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲13213.30 ▼1.071.58 ▼0.4241.86 ▼2.47
Dashboard /wp-admin2,298 ▲1104.86 ▼0.0099.15 ▼23.7582.11 ▲37.47
Posts /wp-admin/edit.php2,189 ▲972.21 ▲0.0837.88 ▲0.1738.21 ▲3.25
Add New Post /wp-admin/post-new.php1,599 ▲8517.59 ▲0.14703.92 ▲3.2953.03 ▼14.85
Media Library /wp-admin/upload.php1,479 ▲914.15 ▼0.1596.98 ▼11.4979.61 ▲28.16
Dropwp Generator /wp-admin/plugins.php?page=dropwp_generator1,4042.2123.9946.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP65111,5092,009
PO File1375759330
Markdown3700317
CSS19098

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 code0.48
Average class complexity39.12
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods96
▷ Static methods77.29%
▷ Public methods7679.17%
▷ Protected methods2020.83%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
img/dropwp.png0.98KB1.24KB0.00%
img/logo.png5.62KB3.61KB▼ 35.74%
img/close.png0.82KB0.78KB▼ 4.64%
img/abrir-ticket.png0.57KB0.43KB▼ 25.47%
img/ir-a-manuales.png0.58KB0.57KB▼ 3.34%