84% reviews-up

Code Review | Reviews Up

WordPress plugin Reviews Up scored84%from 54 tests.

About plugin

  • Plugin page: reviews-up
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2022
  • Latest release: Jun 21, 2023
  • Number of updates: 38
  • Update frequency: every 13.5 days
  • Top authors: thingsup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /378 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.81ms] Passed 4 tests

An overview of server-side resources used by Reviews Up
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.33 ▼4.40
Dashboard /wp-admin3.34 ▼0.0151.26 ▼14.50
Posts /wp-admin/edit.php3.39 ▲0.0347.47 ▼5.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.11 ▼15.31
Media Library /wp-admin/upload.php3.26 ▲0.0339.51 ▼1.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Reviews Up
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11214.31 ▲0.152.11 ▲0.4344.91 ▲3.07
Dashboard /wp-admin2,249 ▲755.53 ▼0.0396.21 ▲7.0880.71 ▲41.27
Posts /wp-admin/edit.php2,157 ▲602.00 ▲0.0135.82 ▼3.6835.44 ▼1.84
Add New Post /wp-admin/post-new.php1,577 ▲5122.92 ▼0.21693.67 ▲32.1853.70 ▼6.11
Media Library /wp-admin/upload.php1,451 ▲484.14 ▲0.05102.68 ▼8.3568.63 ▲20.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reviews-up/reviews-up.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviews-up/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reviews-up/hooks.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

reviews-up/reviews-up.php Passed 13 tests

This is the main PHP file of "Reviews Up" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
112 characters long description:
Allows Reviews Up accounts to easily activate and embed various reputation widgets accross their Wordpress sites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin272 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3538171
CSS112355
SVG10143
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin