84% plugin-support-comments

Code Review | Plugin Support Comments

WordPress plugin Plugin Support Comments scored84%from 54 tests.

About plugin

  • Plugin page: plugin-support-co...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Nov 12, 2012
  • Number of updates: 3
  • Update frequency: every 9.7 days
  • Top authors: jealousdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /810 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▲3.08ms] Passed 4 tests

Server-side resources used by Plugin Support Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.91 ▲2.24
Dashboard /wp-admin3.34 ▲0.0352.25 ▲1.73
Posts /wp-admin/edit.php3.39 ▲0.0352.59 ▲5.88
Add New Post /wp-admin/post-new.php3.18 ▼2.7111,391.64 ▲11,292.35
Media Library /wp-admin/upload.php3.26 ▲0.0341.31 ▲2.48

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/plugin-support-comments/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Support Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.26 ▼1.121.73 ▲0.0841.20 ▼1.00
Dashboard /wp-admin2,224 ▲175.84 ▲0.95101.15 ▼9.3038.97 ▼5.74
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0139.33 ▲3.6034.31 ▼4.04
Add New Post /wp-admin/post-new.php6,237 ▲4,68321.50 ▲3.10882.34 ▲228.9659.40 ▲0.48
Media Library /wp-admin/upload.php1,403 ▲34.25 ▼0.05102.40 ▲1.9446.00 ▲0.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× 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/plugin-support-comments/support-comments.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: plugin, comments, feed, support

plugin-support-comments/support-comments.php 92% from 13 tests

The main file in "Plugin Support Comments" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("plugin-support-comments.php" instead of "support-comments.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14116110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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
PNG images were not found in this plugin