10% ezdfp

Code Review | EZDFP WORDPRESS PLUGIN

WordPress plugin EZDFP WORDPRESS PLUGIN scored10%from 54 tests.

About plugin

  • Plugin page: ezdfp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 16, 2016
  • Latest release: Jul 17, 2016
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: hdvo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ezdfp/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_ezdfp_widget_plugin has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼57.94ms] Passed 4 tests

This is a short check of server-side resources used by EZDFP WORDPRESS PLUGIN
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.48 ▼40.79
Dashboard /wp-admin2.10 ▼1.207.20 ▼46.12
Posts /wp-admin/edit.php2.10 ▼1.255.63 ▼48.66
Add New Post /wp-admin/post-new.php2.10 ▼3.785.80 ▼96.20
Media Library /wp-admin/upload.php2.10 ▼1.126.27 ▼32.02
EzDFP Widget /wp-admin/options-general.php?page=ezdfp-setting2.106.19

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_wp_ezdfp_plugin
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

EZDFP WORDPRESS PLUGIN: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.38 ▼0.171.91 ▲0.2147.96 ▲3.67
Dashboard /wp-admin2,202 ▲285.63 ▼0.0386.16 ▼11.5742.26 ▼2.66
Posts /wp-admin/edit.php2,104 ▲221.98 ▼0.0335.17 ▼2.9037.68 ▲1.46
Add New Post /wp-admin/post-new.php1,530 ▲123.08 ▼0.08653.42 ▼16.8155.79 ▼0.69
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.09107.10 ▼1.7945.74 ▼0.76
EzDFP Widget /wp-admin/options-general.php?page=ezdfp-setting7982.0327.7729.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/ezdfp/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_ezdfp_widget_plugin has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wp_ezdfp_plugin
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ezdfp-setting
    • > Deprecated in wp-content/plugins/ezdfp/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_ezdfp_widget_plugin has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=ezdfp-setting
    • > Deprecated in wp-content/plugins/ezdfp/index.php+72
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=ezdfp-setting
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in wp_ezdfp_widget_plugin is deprecated since version 4.3.0! Use __construct() instead.

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ezdfp/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezdfp/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

ezdfp/index.php 92% from 13 tests

The main PHP file in "EZDFP WORDPRESS PLUGIN" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ezdfp.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin270 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32054270

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.50
▷ Minimum class complexity6.00
▷ Maximum class complexity11.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin