84% awesome-wp-comment-rating

Code Review | Awesome Comment Rating

WordPress plugin Awesome Comment Rating scored84%from 54 tests.

About plugin

  • Plugin page: awesome-wp-commen...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Mar 1, 2020
  • Number of updates: 7
  • Update frequency: every 58.7 days
  • Top authors: obydul (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /1,603 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.29MB] [CPU: ▲0.99ms] Passed 4 tests

A check of server-side resources used by Awesome Comment Rating
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2140.50 ▲2.62
Dashboard /wp-admin3.68 ▲0.3850.13 ▲1.84
Posts /wp-admin/edit.php3.73 ▲0.3855.58 ▲9.33
Add New Post /wp-admin/post-new.php6.17 ▲0.2993.79 ▼3.24
Media Library /wp-admin/upload.php3.52 ▲0.2936.92 ▲2.75
Awesome Comment Rating /wp-admin/options-general.php?page=awesome-wp-comment-rating3.5138.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
awcr_bymo_gaming_bar
awcr_bymo_star_field
widget_recent-posts
db_upgraded
awcr_bymo_shortcodes
awcr_bymo_gauge_chart
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Comment Rating
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲21415.04 ▲0.781.72 ▲0.1444.24 ▲6.71
Dashboard /wp-admin2,364 ▲1736.73 ▲1.84136.85 ▲34.3343.69 ▼4.38
Posts /wp-admin/edit.php2,277 ▲1883.51 ▲1.4655.90 ▲15.8532.21 ▼5.61
Add New Post /wp-admin/post-new.php1,687 ▲17322.08 ▲4.49633.39 ▼3.9836.97 ▼11.07
Media Library /wp-admin/upload.php1,409 ▲244.29 ▲0.0780.09 ▼19.7840.60 ▼2.64
Awesome Comment Rating /wp-admin/options-general.php?page=awesome-wp-comment-rating2,9394.58129.6129.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 12 options in the database
    • awcr_bymo_shortcodes
    • theysaidso_admin_options
    • widget_recent-comments
    • awcr_bymo_gaming_bar
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • awcr_bymo_star_field
    • awcr_bymo_google_histogram
    • awcr_bymo_basic_settings
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-wp-comment-rating/init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/awesome-wp-comment-rating/shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/awesome-wp-comment-rating/awesome-wp-comment-rating.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

awesome-wp-comment-rating/awesome-wp-comment-rating.php Passed 13 tests

The entry point to "Awesome Comment Rating" version 1.1 is a PHP file that has certain tags in its header comment area
117 characters long description:
Awesome Comment Rating allows users to provide star rating on comment form of WordPress posts, custom posts or pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,545 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72333341,224
CSS11610321

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity36.50
▷ Minimum class complexity3.00
▷ Maximum class complexity70.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin