10% zoorum-comments

Code Review | Zoorum Comments

WordPress plugin Zoorum Comments scored 10% from 54 tests.

About plugin

  • Plugin page: zoorum-comments
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Sep 16, 2013
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: zoorum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 775 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.19ms] Passed 4 tests

An overview of server-side resources used by Zoorum Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.04 ▲1.02
Dashboard /wp-admin3.39 ▲0.0849.66 ▼0.97
Posts /wp-admin/edit.php3.36 ▲0.0045.17 ▼8.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.07 ▼8.23
Media Library /wp-admin/upload.php3.31 ▲0.0838.87 ▲4.37
Zoorum Comments /wp-admin/options-general.php?page=zoorum-comments/zoorum-comments.php3.2636.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
zoorum_show_error
widget_theysaidso_widget
widget_zoorum_feed_widget
zoorum_url
zoorum_api_key

Browser metrics Passed 4 tests

An overview of browser requirements for Zoorum Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲9813.77 ▼0.857.15 ▲5.2247.48 ▲8.61
Dashboard /wp-admin2,215 ▲124.96 ▲0.12115.94 ▲12.7740.57 ▼1.56
Posts /wp-admin/edit.php2,099 ▲132.04 ▲0.0646.36 ▲10.8837.07 ▲4.45
Add New Post /wp-admin/post-new.php1,521 ▲723.28 ▲5.76644.68 ▼28.1448.37 ▼8.13
Media Library /wp-admin/upload.php1,391 ▼04.27 ▲0.01100.75 ▲1.1341.33 ▼3.98
Zoorum Comments /wp-admin/options-general.php?page=zoorum-comments/zoorum-comments.php8262.1428.9326.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-comments
    • zoorum_url
    • widget_theysaidso_widget
    • zoorum_api_key
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • zoorum_show_error
    • can_compress_scripts
    • widget_zoorum_feed_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=zoorum-comments/zoorum-comments.php
    • > Notice in wp-content/plugins/zoorum-comments/zoorum-comments-admin.php+12
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zoorum-comments/inc/zoorum-comments-utils.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zoorum-comments/zoorum-comments.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zoorum-comments/inc/zoorum-comments-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/zoorum-comments/zoorum-comments-tpl.php:17

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: comments, forum

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

The entry point to "Zoorum Comments" version 0.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,030 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP789116509
JavaScript12023330
CSS151101
PO File1343690

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected