94% wpm-reviews

Code Review | WPM Reviews

WordPress plugin WPM Reviews scored 94% from 54 tests.

About plugin

  • Plugin page: wpm-reviews
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.3.1
  • WordPress version: 5.8.1
  • First release: Oct 31, 2019
  • Latest release: Dec 17, 2019
  • Number of updates: 8
  • Update frequency: every 5.9 days
  • Top authors: wordpressmechanic (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 280 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼143.15ms] Passed 4 tests

This is a short check of server-side resources used by WPM Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1634.30 ▲13.07
Dashboard /wp-admin3.11 ▲0.0641.33 ▼10.86
Posts /wp-admin/edit.php3.16 ▲0.0641.22 ▲1.79
Add New Post /wp-admin/post-new.php5.47 ▲0.0388.58 ▼563.44
Media Library /wp-admin/upload.php3.05 ▲0.0530.06 ▼0.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WPM Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲24716.38 ▲0.7912.94 ▲4.6147.80 ▲0.26
Dashboard /wp-admin2,989 ▲525.83 ▼0.12136.37 ▼10.82109.17 ▼7.93
Posts /wp-admin/edit.php2,761 ▲222.72 ▲0.0063.33 ▲0.1790.56 ▼4.34
Add New Post /wp-admin/post-new.php1,891 ▲39319.09 ▲0.32370.89 ▲6.47113.97 ▲5.71
Media Library /wp-admin/upload.php1,829 ▲225.02 ▼0.00147.12 ▼15.37125.57 ▲5.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpm-reviews/wpm-reviews.php:11

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: reviews, wp, facebook reviews, yelp reviews, google reviews...

wpm-reviews/wpm-reviews.php 92% from 13 tests

"WPM Reviews" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin402 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16810273
CSS118076
JavaScript22053

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected