90% hivepress-favorites

Code Review | HivePress Favorites

WordPress plugin HivePress Favorites scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-favorites
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2018
  • Latest release: Apr 11, 2023
  • Number of updates: 13
  • Update frequency: every 126.3 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

7,000+ active /40,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by HivePress Favorites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼3.82
Dashboard /wp-admin3.31 ▲0.0147.07 ▼4.21
Posts /wp-admin/edit.php3.36 ▲0.0147.08 ▲1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.75 ▼10.41
Media Library /wp-admin/upload.php3.23 ▲0.0035.62 ▼0.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

HivePress Favorites: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.431.79 ▼0.0941.29 ▼7.57
Dashboard /wp-admin2,203 ▲124.85 ▼0.05109.79 ▲6.9240.44 ▼4.32
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.1240.11 ▼0.7634.86 ▲2.41
Add New Post /wp-admin/post-new.php1,532 ▲222.92 ▲4.67638.80 ▲34.1447.70 ▲3.77
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0594.04 ▼3.4441.68 ▼0.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: classifieds, listings, favorites, directory, hivepress

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

The main PHP file in "HivePress Favorites" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Allow users to keep a list of favorite listings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin321 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP784166321

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods17.14%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin