74% guahanweb-ajax-comments-with-wysiwyg-support

Code Review | GuahanWeb AJAX & WYSIWYG Comments

WordPress plugin GuahanWeb AJAX & WYSIWYG Comments scored74%from 54 tests.

About plugin

  • Plugin page: guahanweb-ajax-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 22, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: guahanweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,607 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.84MB] [CPU: ▼63.49ms] Passed 4 tests

This is a short check of server-side resources used by GuahanWeb AJAX & WYSIWYG Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.316.02 ▼32.76
Dashboard /wp-admin2.17 ▼1.175.79 ▼55.64
Posts /wp-admin/edit.php2.17 ▼1.186.06 ▼43.11
Add New Post /wp-admin/post-new.php2.17 ▼3.715.68 ▼122.45
Media Library /wp-admin/upload.php2.17 ▼1.055.86 ▼27.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
GuahanWebAjaxCommentsPlugin

Browser metrics Passed 4 tests

An overview of browser requirements for GuahanWeb AJAX & WYSIWYG Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.66 ▼0.698.07 ▲6.4946.29 ▲6.44
Dashboard /wp-admin2,210 ▲195.80 ▲0.91102.69 ▼5.8140.57 ▼6.08
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0234.88 ▼1.9732.09 ▼0.28
Add New Post /wp-admin/post-new.php1,520 ▼217.84 ▼5.38650.90 ▼17.2350.30 ▼12.53
Media Library /wp-admin/upload.php1,398 ▲164.22 ▼0.0399.67 ▼0.2442.81 ▼1.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • GuahanWebAjaxCommentsPlugin
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/guahanweb-ajax-comments-with-wysiwyg-support/index.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tinymce, wysiwyg, ajax, comments, wordpress

guahanweb-ajax-comments-with-wysiwyg-support/index.php 85% from 13 tests

Analyzing the main PHP file in "GuahanWeb AJAX & WYSIWYG Comments" version 1.0
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 238 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("guahanweb-ajax-comments-with-wysiwyg-support.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected385 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13919264
JavaScript27271
CSS35050

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods17.69%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin