84% wp-comments-vip

Code Review | WP Comments VIP

WordPress plugin WP Comments VIP scored84%from 54 tests.

About plugin

  • Plugin page: wp-comments-vip
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 33
  • Update frequency: every 1.1 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.59ms] Passed 4 tests

An overview of server-side resources used by WP Comments VIP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.54 ▼0.58
Dashboard /wp-admin3.30 ▼0.0139.05 ▼7.71
Posts /wp-admin/edit.php3.40 ▲0.0447.77 ▲4.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.34 ▼5.23
Media Library /wp-admin/upload.php3.28 ▲0.0436.77 ▲3.17
WP Comments Vip /wp-admin/options-general.php?page=wp-comments-vip-options3.2432.66

Server storage [IO: ▲0.06MB] [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: 14 new files
Database: no new tables, 14 new options
New WordPress options
wp_comments_vip_level_num_3
can_compress_scripts
widget_recent-posts
wp_comments_vip_level_num_6
widget_theysaidso_widget
wp_comments_vip_level_num_7
widget_recent-comments
wp_comments_vip_display_admin_vip
db_upgraded
wp_comments_vip_level_num_5
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Comments VIP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.35 ▼0.201.71 ▲0.1646.46 ▲8.51
Dashboard /wp-admin2,200 ▲195.51 ▼0.2383.45 ▼17.0640.98 ▼3.38
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0135.86 ▲1.4035.73 ▼5.55
Add New Post /wp-admin/post-new.php1,538 ▲918.46 ▼4.42589.98 ▲6.0365.20 ▲16.13
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.01106.48 ▲4.6648.26 ▲5.42
WP Comments Vip /wp-admin/options-general.php?page=wp-comments-vip-options9302.0022.2625.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 14 options
    • wp_comments_vip_level_num_5
    • wp_comments_vip_level_num_1
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • wp_comments_vip_display_admin_vip
    • wp_comments_vip_level_num_6
    • wp_comments_vip_level_num_2
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 2× 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/wp-comments-vip/options.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-comments-vip/wp-comments-vip.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: vip, comments

wp-comments-vip/wp-comments-vip.php Passed 13 tests

This is the main PHP file of "WP Comments VIP" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Add VIP Comments Rank into your blog's comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected352 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP21927141
CSS200133
PO File2263078

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/vip.png4.03KB4.16KB0.00%