84% azurecurve-comment-validator

Code Review | azurecurve Comment Validator

WordPress plugin azurecurve Comment Validator scored84%from 54 tests.

About plugin

  • Plugin page: azurecurve-commen...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: May 2, 2015
  • Latest release: Dec 3, 2018
  • Number of updates: 11
  • Update frequency: every 119.2 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /936 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.08MB] [CPU: ▼1.07ms] Passed 4 tests

Server-side resources used by azurecurve Comment Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.77 ▼7.02
Dashboard /wp-admin3.39 ▲0.0856.31 ▼0.54
Posts /wp-admin/edit.php3.44 ▲0.0851.87 ▲1.97
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.01 ▲1.32
Media Library /wp-admin/upload.php3.31 ▲0.0839.07 ▲3.73
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2732.27
Comment Validator /wp-admin/admin.php?page=azc-cv3.2733.48

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
azc_cv_options

Browser metrics Passed 4 tests

An overview of browser requirements for azurecurve Comment Validator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10713.23 ▼1.235.13 ▲3.4545.55 ▼3.60
Dashboard /wp-admin2,222 ▲345.83 ▲0.02108.92 ▼9.5172.02 ▲27.41
Posts /wp-admin/edit.php2,117 ▲282.01 ▼0.0333.26 ▼2.4033.08 ▼4.73
Add New Post /wp-admin/post-new.php1,543 ▲1023.11 ▼0.16773.26 ▲77.0263.20 ▲9.50
Media Library /wp-admin/upload.php1,416 ▲314.19 ▲0.03101.88 ▼9.2279.68 ▲35.50
Plugins /wp-admin/admin.php?page=azc-plugin-menus8472.0224.6327.70
Comment Validator /wp-admin/admin.php?page=azc-cv8892.0226.0930.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 add_action() in wp-content/plugins/azurecurve-comment-validator/azurecurve-comment-validator.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: moderation, validation, comments

azurecurve-comment-validator/azurecurve-comment-validator.php 85% from 13 tests

This is the main PHP file of "azurecurve Comment Validator" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin458 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26446442
CSS10216

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%