90% hivepress-claim-listings

Code Review | HivePress Claim Listings

WordPress plugin HivePress Claim Listings scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-claim-l...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Apr 11, 2023
  • Number of updates: 10
  • Update frequency: every 126.4 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /22,791 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.95ms] Passed 4 tests

A check of server-side resources used by HivePress Claim Listings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.24 ▼1.58
Dashboard /wp-admin3.31 ▲0.0150.34 ▲1.75
Posts /wp-admin/edit.php3.36 ▲0.0049.34 ▼1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.96 ▼18.15
Media Library /wp-admin/upload.php3.24 ▲0.0034.70 ▲2.06

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by HivePress Claim Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.122.21 ▲0.3545.42 ▲1.74
Dashboard /wp-admin2,209 ▲215.86 ▼0.1597.83 ▼16.6938.94 ▼0.93
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0441.44 ▼2.0735.77 ▼1.23
Add New Post /wp-admin/post-new.php1,533 ▼223.33 ▲0.09692.97 ▲58.2350.15 ▼8.75
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.01100.84 ▲1.5043.02 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: listings, directory, hivepress, claim listings, classifieds

hivepress-claim-listings/hivepress-claim-listings.php Passed 13 tests

This is the main PHP file of "HivePress Claim Listings" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
35 characters long description:
Charge users for claiming listings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected788 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP18224361788

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes222.22%
Methods28
▷ Static methods310.71%
▷ Public methods2796.43%
▷ Protected methods13.57%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin