90% hivepress-paid-listings

Code Review | HivePress Paid Listings

WordPress plugin HivePress Paid Listings scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-paid-li...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 1, 2019
  • Latest release: Apr 11, 2023
  • Number of updates: 14
  • Update frequency: every 89.8 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /39,058 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by HivePress Paid Listings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.47 ▼0.24
Dashboard /wp-admin3.31 ▼0.0350.24 ▼7.47
Posts /wp-admin/edit.php3.36 ▲0.0142.48 ▼4.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.43 ▲5.65
Media Library /wp-admin/upload.php3.23 ▲0.0035.99 ▼1.31

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for HivePress Paid Listings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.42 ▲0.141.73 ▼0.1741.19 ▲0.35
Dashboard /wp-admin2,198 ▲215.64 ▲0.0585.16 ▼10.8039.54 ▼1.77
Posts /wp-admin/edit.php2,079 ▼242.00 ▼0.0035.53 ▼9.3531.69 ▼8.58
Add New Post /wp-admin/post-new.php1,531 ▲522.90 ▼0.08620.56 ▼14.2258.51 ▼19.98
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0396.54 ▼1.0643.61 ▲3.25

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: listings, hivepress, classifieds, paid listings, directory

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

The principal PHP file in "HivePress Paid Listings" v. 1.1.7 is loaded by WordPress automatically on each request
57 characters long description:
Charge users for adding, featuring and renewing listings.

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
Good job! No executable or dangerous file extensions detected2,025 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP434979161,969
LESS19350
JSON1005
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity12.88
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes212.50%
Methods79
▷ Static methods2025.32%
▷ Public methods7696.20%
▷ Protected methods11.27%
▷ Private methods22.53%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin