89% reviews-for-easy-digital-downloads

Code Review | Reviews for Easy Digital Downloads

WordPress plugin Reviews for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: reviews-for-easy-...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2020
  • Latest release: Jun 21, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: bhoot (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.02ms] Passed 4 tests

Analyzing server-side resources used by Reviews for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.43 ▲0.99
Dashboard /wp-admin3.31 ▲0.0145.48 ▼3.66
Posts /wp-admin/edit.php3.36 ▲0.0145.45 ▼8.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.52 ▼17.08
Media Library /wp-admin/upload.php3.23 ▲0.0137.10 ▲5.97

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Reviews for Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.62 ▼0.761.74 ▼0.1543.54 ▼1.64
Dashboard /wp-admin2,216 ▲315.88 ▲0.95109.81 ▲0.1243.38 ▼3.07
Posts /wp-admin/edit.php2,095 ▲272.05 ▼0.0035.35 ▲1.2133.33 ▲1.29
Add New Post /wp-admin/post-new.php1,544 ▲2523.54 ▲0.37672.27 ▼10.1056.19 ▲6.22
Media Library /wp-admin/upload.php1,395 ▲74.19 ▲0.0296.43 ▼2.2239.89 ▼2.74

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: edd, reviews

reviews-for-easy-digital-downloads/easy-digital-downloads-reviews.php 77% from 13 tests

The main PHP file in "Reviews for Easy Digital Downloads" ver. 0.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reviews-for-easy-digital-downloads.php" instead of "easy-digital-downloads-reviews.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,120 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP22221738882
JavaScript22298150
CSS28288

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.80
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods57
▷ Static methods3256.14%
▷ Public methods4375.44%
▷ Protected methods00.00%
▷ Private methods1424.56%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin