90% edd-favorites

Code Review | EDD Favorites

WordPress plugin EDD Favorites scored90%from 54 tests.

About plugin

  • Plugin page: edd-favorites
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Mar 11, 2014
  • Latest release: Aug 2, 2017
  • Number of updates: 19
  • Update frequency: every 65.5 days
  • Top authors: sumobi (94.74%)cklosows (10.53%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /7,361 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by EDD Favorites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.50 ▲1.14
Dashboard /wp-admin3.34 ▲0.0448.40 ▼2.57
Posts /wp-admin/edit.php3.46 ▲0.1050.74 ▲1.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.66 ▼5.72
Media Library /wp-admin/upload.php3.27 ▲0.0435.35 ▼1.67

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD Favorites
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.25 ▼0.111.73 ▼0.1643.18 ▼1.91
Dashboard /wp-admin2,204 ▲245.58 ▼0.0592.42 ▲3.1344.85 ▼2.12
Posts /wp-admin/edit.php2,112 ▲91.95 ▲0.0140.47 ▼5.6438.66 ▲1.25
Add New Post /wp-admin/post-new.php1,538 ▲1223.51 ▲0.29663.91 ▼35.9157.17 ▲6.64
Media Library /wp-admin/upload.php1,412 ▲124.22 ▲0.04100.81 ▼6.4244.77 ▲0.56

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

edd-favorites/edd-favorites.php Passed 13 tests

The primary PHP file in "EDD Favorites" version 1.0.8 is used by WordPress to initiate all plugin functionality
76 characters long description:
An add-on for EDD Wish Lists. Favorite/Unfavorite downloads in just 1 click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected648 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10234446648

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods15
▷ Static methods213.33%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions39
▷ Named functions39100.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