10% multisite-comment-display

Code Review | Multisite Comment Display

WordPress plugin Multisite Comment Display scored10%from 54 tests.

About plugin

  • Plugin page: multisite-comment...
  • Plugin version: 1.10
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Mar 7, 2020
  • Number of updates: 13
  • Update frequency: every 86.4 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/multisite-comment-display/mutlisite-comment-display.php+424
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.44ms] Passed 4 tests

An overview of server-side resources used by Multisite Comment Display
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.07 ▼2.21
Dashboard /wp-admin3.31 ▼0.0446.90 ▼12.19
Posts /wp-admin/edit.php3.36 ▲0.0044.22 ▼3.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.26 ▼15.62
Media Library /wp-admin/upload.php3.23 ▲0.0032.24 ▲1.54

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Comment Display
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▼0.221.79 ▲0.1742.99 ▲1.94
Dashboard /wp-admin2,198 ▲245.63 ▼0.0195.26 ▲9.3143.15 ▼1.63
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0835.87 ▼4.5535.89 ▼0.78
Add New Post /wp-admin/post-new.php1,526 ▼922.92 ▲4.92667.82 ▲47.6651.10 ▼19.12
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0397.89 ▲2.0643.38 ▼1.16

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/multisite-comment-display/mutlisite-comment-display.php on line 424

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
1 plugin tags: multisite comment display

multisite-comment-display/mutlisite-comment-display.php 92% from 13 tests

The principal PHP file in "Multisite Comment Display" v. 1.10 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multisite-comment-display.php" instead of "mutlisite-comment-display.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
Success! There were no dangerous files found in this plugin272 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP152109262
XML20010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.57MB with 0.50MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png204.21KB26.34KB▼ 87.10%
assets/icon-256x256.png123.68KB12.94KB▼ 89.54%
assets/icon-128x128.png79.94KB5.97KB▼ 92.53%
assets/screenshot-1.png175.92KB30.52KB▼ 82.65%