84% spcomments

Code Review | SP Comments Shortcodes Kit

WordPress plugin SP Comments Shortcodes Kit scored84%from 54 tests.

About plugin

  • Plugin page: spcomments
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Apr 15, 2017
  • Latest release: Sep 25, 2017
  • Number of updates: 16
  • Update frequency: every 10.3 days
  • Top authors: prozetagamma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.74ms] Passed 4 tests

A check of server-side resources used by SP Comments Shortcodes Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.72 ▼3.91
Dashboard /wp-admin3.35 ▲0.0449.61 ▼5.40
Posts /wp-admin/edit.php3.40 ▲0.0452.73 ▲1.05
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.22 ▲1.32
Media Library /wp-admin/upload.php3.27 ▲0.0443.51 ▲9.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SP Comments Shortcodes Kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.59 ▼0.799.59 ▲7.5743.16 ▼0.94
Dashboard /wp-admin2,206 ▲155.90 ▲0.08115.20 ▲7.2341.37 ▼4.28
Posts /wp-admin/edit.php2,092 ▼42.05 ▲0.0139.88 ▼2.4435.78 ▼3.20
Add New Post /wp-admin/post-new.php1,514 ▼023.67 ▲5.97703.01 ▲15.7656.34 ▼7.45
Media Library /wp-admin/upload.php1,391 ▲34.10 ▼0.1399.00 ▼5.6544.01 ▲0.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/spcomments/spcomments.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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: shortcode, comments, column

spcomments/spcomments.php 92% from 13 tests

"SP Comments Shortcodes Kit" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected297 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19456173
CSS140196
JavaScript127428

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin