10% edd-license-activator-notifier

Code Review | Easy Digital Download License Activator Notifier

WordPress plugin Easy Digital Download License Activator Notifier scored10%from 54 tests.

About plugin

  • Plugin page: edd-license-activ...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Nov 16, 2017
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: tjthouhid (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/edd-license-activator-notifier/edd-license-activator-notifier.php+26
    Undefined variable: jal_db_version

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.86ms] Passed 4 tests

A check of server-side resources used by Easy Digital Download License Activator Notifier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.94 ▲2.55
Dashboard /wp-admin3.34 ▲0.0445.56 ▼0.23
Posts /wp-admin/edit.php3.39 ▲0.0444.71 ▼0.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.85 ▼21.17
Media Library /wp-admin/upload.php3.27 ▲0.0436.89 ▲3.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_edd_notification_tbl
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
edd_notification_plugin_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

Easy Digital Download License Activator Notifier: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.35 ▼0.271.77 ▲0.0841.36 ▲5.25
Dashboard /wp-admin2,197 ▲195.63 ▼0.0787.93 ▼27.2237.21 ▼7.80
Posts /wp-admin/edit.php2,105 ▲21.99 ▲0.0234.54 ▼2.1834.42 ▲2.87
Add New Post /wp-admin/post-new.php1,540 ▲1118.33 ▼4.81621.51 ▲14.8468.49 ▲7.58
Media Library /wp-admin/upload.php1,408 ▲54.17 ▼0.03103.12 ▼0.9041.43 ▼2.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/edd-license-activator-notifier/templates/widget.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: total_data in wp-content/plugins/edd-license-activator-notifier/templates/widget.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/edd-license-activator-notifier/edd-license-activator-notifier.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

edd-license-activator-notifier/edd-license-activator-notifier.php Passed 13 tests

The main PHP file in "Easy Digital Download License Activator Notifier" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
111 characters long description:
This is a plugin for Easy Digital Download Software License Activator Notification Show on Dashboard as widget.

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
No dangerous file extensions were detected298 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25636242
Markdown110029
JavaScript14027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png44.83KB12.35KB▼ 72.45%