94% wp-comment-vote

Code Review | WP Comment Vote

WordPress plugin WP Comment Vote scored 94% from 54 tests.

About plugin

  • Plugin page: wp-comment-vote
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.0
  • WordPress version: 5.8.1
  • First release: Aug 26, 2014
  • Latest release: Jan 5, 2016
  • Number of updates: 6
  • Update frequency: every 82.8 days
  • Top authors: fatesinger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,212 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.39ms] Passed 4 tests

A check of server-side resources used by WP Comment Vote
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.69 ▼0.0325.72 ▼1.12
Dashboard /wp-admin3.09 ▲0.0349.80 ▼2.88
Posts /wp-admin/edit.php3.14 ▲0.0348.69 ▲3.11
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.41 ▼578.69
Media Library /wp-admin/upload.php3.03 ▲0.0329.52 ▼6.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Comment Vote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲21916.22 ▲0.6312.02 ▲3.8250.79 ▼9.27
Dashboard /wp-admin2,973 ▲366.08 ▲0.14146.17 ▼10.58119.00 ▲1.50
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0068.53 ▲3.9196.95 ▲4.41
Add New Post /wp-admin/post-new.php1,683 ▼018.54 ▼0.23380.56 ▼12.61117.85 ▼4.18
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.01165.84 ▼0.22128.06 ▼5.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-comment-vote/wp-commnet-vote.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: wordpress

wp-comment-vote/wp-commnet-vote.php 92% from 13 tests

The primary PHP file in "WP Comment Vote" version 0.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-comment-vote.php" instead of "wp-commnet-vote.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin209 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP126988
SVG10042
JavaScript11041
CSS16038

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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