84% featured-listing-for-locatepress

Code Review | Featured Listing for Locatepress

WordPress plugin Featured Listing for Locatepress scored84%from 54 tests.

About plugin

  • Plugin page: featured-listing-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Nov 22, 2021
  • Latest release: Nov 22, 2021
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: locatepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Featured Listing for Locatepress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.14 ▼8.55
Dashboard /wp-admin3.31 ▲0.0045.93 ▼5.19
Posts /wp-admin/edit.php3.36 ▲0.0047.23 ▲2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.74 ▼4.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▲1.16

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
Activated_Plugin
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Featured Listing for Locatepress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.051.67 ▼0.4439.53 ▼3.89
Dashboard /wp-admin2,206 ▲184.85 ▼0.26112.42 ▼3.1842.04 ▼2.83
Posts /wp-admin/edit.php2,089 ▲212.02 ▲0.0139.08 ▲3.0935.59 ▲0.76
Add New Post /wp-admin/post-new.php1,533 ▲523.04 ▲0.21661.16 ▲3.5049.71 ▼4.39
Media Library /wp-admin/upload.php1,382 ▼64.14 ▼0.1495.36 ▲1.8441.78 ▼0.60

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/featured-listing-for-locatepress/public/partials/featured-listing-for-locatepress-public-display.php
    • > /wp-content/plugins/featured-listing-for-locatepress/admin/partials/featured-listing-for-locatepress-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No tags were found

featured-listing-for-locatepress/featured-listing-for-locatepress.php Passed 13 tests

The primary PHP file in "Featured Listing for Locatepress" version 1.0.0 is used by WordPress to initiate all plugin functionality
103 characters long description:
Featured Listing for Locatepress is an add-on for Locatepress which allows your listing to be featured.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13200554316
JavaScript24546
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods38.57%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin