78% review-content-type

Code Review | Review Content Type

WordPress plugin Review Content Type scored 78% from 54 tests.

About plugin

  • Plugin page: review-content-type
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Apr 19, 2015
  • Latest release: May 14, 2018
  • Number of updates: 7
  • Update frequency: every 160.1 days
  • Top authors: chetanchauhan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active / 5,508 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 gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.01ms] Passed 4 tests

This is a short check of server-side resources used by Review Content Type
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.19 ▼4.84
Dashboard /wp-admin3.43 ▲0.1347.19 ▼5.98
Posts /wp-admin/edit.php3.49 ▲0.1448.75 ▲2.07
Add New Post /wp-admin/post-new.php6.04 ▲0.1590.42 ▼7.27
Media Library /wp-admin/upload.php3.35 ▲0.1237.62 ▲2.44
Add New /wp-admin/post-new.php?post_type=review3.5255.76
Categories /wp-admin/edit-tags.php?taxonomy=review_category&post_type=review3.3435.83
Settings /wp-admin/edit.php?post_type=review&page=rct_settings3.3233.16
Reviews /wp-admin/edit.php?post_type=review3.4138.11
Tags /wp-admin/edit-tags.php?taxonomy=review_tag&post_type=review3.3432.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
rct_version
can_compress_scripts
rct_settings
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Review Content Type: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲19214.13 ▼0.164.55 ▲2.7240.79 ▼4.82
Dashboard /wp-admin2,244 ▲565.00 ▲0.14106.48 ▼12.4238.77 ▼9.10
Posts /wp-admin/edit.php2,132 ▲462.08 ▲0.0336.47 ▲0.5230.81 ▼2.70
Add New Post /wp-admin/post-new.php6,557 ▲5,04327.37 ▲9.52866.69 ▲194.8337.80 ▼17.55
Media Library /wp-admin/upload.php1,423 ▲414.23 ▲0.07100.81 ▲2.6440.75 ▼2.52
Add New /wp-admin/post-new.php?post_type=review3,1178.11206.3275.81
Categories /wp-admin/edit-tags.php?taxonomy=review_category&post_type=review1,3081.8926.8727.47
Settings /wp-admin/edit.php?post_type=review&page=rct_settings1,0941.8224.3639.05
Reviews /wp-admin/edit.php?post_type=review1,1452.0533.4428.28
Tags /wp-admin/edit-tags.php?taxonomy=review_tag&post_type=review1,2771.8827.6724.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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 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
Please fix the following items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review-featured-image.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rct_get_min_price() in wp-content/plugins/review-content-type/templates/content-single-review-price.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-content-type/templates/content-single-review-rating.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review-pros-cons.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rct_get_reviewed_item_name() in wp-content/plugins/review-content-type/templates/content-single-review-name.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rct_get_review_summary() in wp-content/plugins/review-content-type/templates/content-single-review-summary.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=review
    • > Network (severe)
    wp-content/plugins/review-content-type/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=review
    • > Network (severe)
    wp-content/plugins/review-content-type/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=review
    • > Network (severe)
    wp-content/plugins/review-content-type/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

review-content-type/review-content-type.php Passed 13 tests

Analyzing the main PHP file in "Review Content Type" version 1.0.4
125 characters long description:
Create and manage reviews easily with this feature-rich, extendable, powerful and free WordPress review plugin the right way.

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
No dangerous file extensions were detected2,989 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP213198401,939
CSS628542981
JavaScript28069

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.70
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods51
▷ Static methods815.69%
▷ Public methods4486.27%
▷ Protected methods47.84%
▷ Private methods35.88%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder.png2.75KB2.92KB0.00%