10% extraordinary-comments

Code Review | Extraordinary Comments

WordPress plugin Extraordinary Comments scored10%from 54 tests.

About plugin

  • Plugin page: extraordinary-com...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2016
  • Latest release: Oct 17, 2016
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: CK MacLeod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.75ms] Passed 4 tests

An overview of server-side resources used by Extraordinary Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.55 ▼37.45
Dashboard /wp-admin2.05 ▼1.254.93 ▼44.28
Posts /wp-admin/edit.php2.05 ▼1.305.32 ▼44.99
Add New Post /wp-admin/post-new.php2.05 ▼3.835.08 ▼92.26
Media Library /wp-admin/upload.php2.05 ▼1.185.06 ▼27.06
Extraordinary Comments /wp-admin/options-general.php?page=cks_exc2.055.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options
widget_cks_exc
cks_exc_version
can_compress_scripts
cks_exc_style
widget_theysaidso_widget
widget_recent-posts
db_upgraded
cks_exc_use_plugin_styles
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Extraordinary Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.67 ▼1.145.30 ▲3.5638.80 ▼2.80
Dashboard /wp-admin2,227 ▲365.02 ▲0.17109.54 ▲2.7742.64 ▼0.89
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0439.50 ▼3.2535.07 ▼0.48
Add New Post /wp-admin/post-new.php1,549 ▲1018.44 ▼4.73604.76 ▼63.7352.70 ▲1.62
Media Library /wp-admin/upload.php1,397 ▲154.29 ▲0.0699.04 ▼3.9641.05 ▼3.39
Extraordinary Comments /wp-admin/options-general.php?page=cks_exc1,3092.0328.6084.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_cks_exc
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=cks_exc
    • > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/extraordinary-comments/exc-archive.php
    • > /wp-content/plugins/extraordinary-comments/exc-settings.php
    • > /wp-content/plugins/extraordinary-comments/extraordinary-comments.php
    • > /wp-content/plugins/extraordinary-comments/exc-widget.php
    • > /wp-content/plugins/extraordinary-comments/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: commenters, comments widget, recent comments, ck macleod, archive...

extraordinary-comments/extraordinary-comments.php 92% from 13 tests

"Extraordinary Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Everything looks great! No dangerous files found in this plugin1,853 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP57042401,355
CSS41435458
JavaScript181740

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity33.50
▷ Minimum class complexity24.00
▷ Maximum class complexity43.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods31
▷ Static methods39.68%
▷ Public methods2890.32%
▷ Protected methods00.00%
▷ Private methods39.68%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/blue_ribbon.png2.90KB1.81KB▼ 37.54%
images/blue_ribbon_2.png4.02KB1.81KB▼ 54.92%