78% nearby-now-reviews

Code Review | Nearby Now Reviews

WordPress plugin Nearby Now Reviews scored 78% from 54 tests.

About plugin

  • Plugin page: nearby-now-reviews
  • Plugin version: 5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Aug 21, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: LNBadmin1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Nearby Now Reviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.22 ▲1.06
Dashboard /wp-admin3.31 ▲0.0151.20 ▲1.99
Posts /wp-admin/edit.php3.36 ▲0.0054.29 ▲1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.43 ▼0.29
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▲0.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Nearby Now Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.22 ▼1.532.13 ▲0.5644.80 ▲1.98
Dashboard /wp-admin2,210 ▲224.87 ▼0.07107.72 ▼7.2941.54 ▼3.61
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0439.21 ▲1.6933.84 ▼0.51
Add New Post /wp-admin/post-new.php1,542 ▲923.16 ▼0.33647.57 ▼4.7556.27 ▼3.75
Media Library /wp-admin/upload.php1,395 ▲104.17 ▼0.0698.46 ▼0.2743.51 ▲0.05
Nearby Now Reviews /wp-admin/nn-reviews.php260.440.0913.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nearby-now-reviews/nn-reviews.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/nn-reviews.php
    • > Network (severe)
    wp-admin/nn-reviews.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Example of the NN reviews plugin)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === nearby-now-reviews === )
You can look at the official readme.txt

nearby-now-reviews/nn-reviews.php 92% from 13 tests

The primary PHP file in "Nearby Now Reviews" version 5.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("nearby-now-reviews.php" instead of "nn-reviews.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin222 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13523160
JavaScript37145
CSS20217

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin