78% commenze-comment-sections

Code Review | Commenze Comment Sections-wp

WordPress plugin Commenze Comment Sections-wp scored78%from 54 tests.

About plugin

  • Plugin page: commenze-comment-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Nov 8, 2021
  • Latest release: Mar 19, 2022
  • Number of updates: 4
  • Update frequency: every 36.0 days
  • Top authors: commenze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 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.03MB] [CPU: ▼0.47ms] Passed 4 tests

Analyzing server-side resources used by Commenze Comment Sections-wp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.73 ▲1.50
Dashboard /wp-admin3.34 ▲0.0360.44 ▲2.43
Posts /wp-admin/edit.php3.39 ▲0.0356.41 ▲0.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.77 ▼6.20
Media Library /wp-admin/upload.php3.26 ▲0.0337.13 ▲2.44
Commenze Settings /wp-admin/options-general.php?page=commenze-settings3.2336.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Commenze Comment Sections-wp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.35 ▲0.062.11 ▲0.0844.05 ▼2.13
Dashboard /wp-admin2,202 ▲225.67 ▼0.0088.81 ▼17.2941.71 ▼4.29
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0038.96 ▼1.4635.79 ▲0.47
Add New Post /wp-admin/post-new.php1,531 ▲323.32 ▲0.13656.69 ▼35.7857.05 ▲3.23
Media Library /wp-admin/upload.php1,398 ▲14.19 ▼0.06101.88 ▼6.5244.96 ▼1.42
Commenze Settings /wp-admin/options-general.php?page=commenze-settings7982.0424.4729.54

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/commenze-comment-sections/templates/comments.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/commenze-comment-sections/options.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/commenze-comment-sections/options.php:101

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
The official readme.txt might help

commenze-comment-sections/commenze.php 92% from 13 tests

"Commenze Comment Sections-wp" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("commenze-comment-sections.php" instead of "commenze.php")

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
Success! There were no dangerous files found in this plugin112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3248112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin