72% reviewseasy

Code Review | Reviews Easy

WordPress plugin Reviews Easy scored72%from 54 tests.

About plugin

  • Plugin page: reviewseasy
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Dec 17, 2016
  • Number of updates: 24
  • Update frequency: every 14.3 days
  • Top authors: AndreyS. (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.51ms] Passed 4 tests

Server-side resources used by Reviews Easy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0849.94 ▲4.49
Dashboard /wp-admin3.37 ▲0.0750.24 ▼0.65
Posts /wp-admin/edit.php3.42 ▲0.0749.46 ▲0.16
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.91 ▼18.27
Media Library /wp-admin/upload.php3.29 ▲0.0634.78 ▼3.28
Add New /wp-admin/post-new.php?post_type=reviews3.4147.19
Reviews /wp-admin/edit.php?post_type=reviews3.3436.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Reviews Easy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲18713.52 ▼1.059.70 ▲7.9542.21 ▼0.79
Dashboard /wp-admin2,227 ▲535.62 ▼0.0584.74 ▼12.8238.85 ▼8.15
Posts /wp-admin/edit.php2,143 ▲462.22 ▲0.2233.38 ▼4.7034.10 ▲0.08
Add New Post /wp-admin/post-new.php1,562 ▲3618.20 ▼4.88598.48 ▼49.6060.92 ▼5.93
Media Library /wp-admin/upload.php1,433 ▲334.26 ▲0.0393.79 ▼6.9040.13 ▼7.66
Add New /wp-admin/post-new.php?post_type=reviews2,1937.49174.7562.78
Reviews /wp-admin/edit.php?post_type=reviews1,1132.1531.2327.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_easyreviews
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/reviewseasy/reviews-easy.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reviewseasy/single-reviews.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/reviewseasy/reviews_widget_template.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=reviews
    • > Network (severe)
    wp-content/plugins/reviewseasy/js/upload-media.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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:
  • Screenshots: Please add images for these screenshots: #1 (Widget with jcarousel of review posts), #2 (Add review post), #3 (List of reviews posts)
You can look at the official readme.txt

reviewseasy/reviews-easy.php 92% from 13 tests

The entry point to "Reviews Easy" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("reviewseasy.php" instead of "reviews-easy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected479 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP35924235
CSS21324158
PO File1131352
JavaScript22734

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png173.29KB70.32KB▼ 59.42%