84% maximum-comment-length-to-1500

Code Review | Maximum Comment Length to 1500

WordPress plugin Maximum Comment Length to 1500 scored84%from 54 tests.

About plugin

  • Plugin page: maximum-comment-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Oct 19, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rentrating (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Maximum Comment Length to 1500
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0040.01 ▼7.88
Dashboard /wp-admin3.35 ▼0.0451.47 ▼16.03
Posts /wp-admin/edit.php3.40 ▲0.0052.01 ▼0.26
Add New Post /wp-admin/post-new.php5.93 ▲0.0091.14 ▼2.70
Media Library /wp-admin/upload.php3.27 ▲0.0035.89 ▼3.08

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Maximum Comment Length to 1500
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.26 ▼0.112.37 ▲0.3244.01 ▼1.14
Dashboard /wp-admin2,198 ▲215.63 ▼0.0391.55 ▼13.3242.26 ▼1.46
Posts /wp-admin/edit.php2,103 ▼02.02 ▼0.1435.69 ▼1.8434.58 ▲1.19
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.29625.19 ▼86.1650.69 ▼8.47
Media Library /wp-admin/upload.php1,397 ▼04.24 ▲0.0897.48 ▼15.2542.47 ▼7.37

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maximum-comment-length-to-1500/maximum-comments-length-to-1500.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: review, rating, maximum comment length, comment length, comment

maximum-comment-length-to-1500/maximum-comments-length-to-1500.php 92% from 13 tests

"Maximum Comment Length to 1500" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maximum-comment-length-to-1500.php" instead of "maximum-comments-length-to-1500.php")

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
Good job! No executable or dangerous file extensions detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16821

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin