84% shortcode-in-comment

Code Review | Shortcode in Comment

WordPress plugin Shortcode in Comment scored 84% from 54 tests.

About plugin

  • Plugin page: shortcode-in-comment
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2013
  • Latest release: Feb 13, 2015
  • Number of updates: 12
  • Update frequency: every 34.7 days
  • Top authors: qpalz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,551 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.02MB] [CPU: ▼3.33ms] Passed 4 tests

An overview of server-side resources used by Shortcode in Comment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0241.84 ▼1.25
Dashboard /wp-admin3.32 ▲0.0245.48 ▼3.02
Posts /wp-admin/edit.php3.37 ▲0.0247.67 ▲3.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.42 ▼10.18
Media Library /wp-admin/upload.php3.24 ▲0.0236.26 ▲1.13
Shortcode in Comment /wp-admin/options-general.php?page=shortcode_in_comment3.2130.55

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Shortcode in Comment: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.371.86 ▲0.1647.11 ▲3.58
Dashboard /wp-admin2,207 ▲215.79 ▼0.1398.78 ▼24.4140.05 ▼6.68
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0038.49 ▲4.2735.85 ▲1.54
Add New Post /wp-admin/post-new.php1,548 ▲1518.34 ▼4.92591.34 ▼88.5355.07 ▼1.67
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.0597.75 ▼8.4443.89 ▼0.91
Shortcode in Comment /wp-admin/options-general.php?page=shortcode_in_comment7852.0326.7425.36

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 add_action() in wp-content/plugins/shortcode-in-comment/shortcode-in-comment.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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: shortcode, comments

shortcode-in-comment/shortcode-in-comment.php Passed 13 tests

The entry point to "Shortcode in Comment" version 1.1.1 is a PHP file that has certain tags in its header comment area
46 characters long description:
Allow users to use some shortcodes in comments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121061
PO File2142154

PHP code Passed 2 tests

An short overview of 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.18
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin