84% wp-comment-encode

Code Review | WP Comment Encode

WordPress plugin WP Comment Encode scored84%from 54 tests.

About plugin

  • Plugin page: wp-comment-encode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: May 19, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dbmartin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by WP Comment Encode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.95 ▼3.44
Dashboard /wp-admin3.31 ▲0.0147.42 ▼5.62
Posts /wp-admin/edit.php3.36 ▲0.0142.28 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.62 ▼14.32
Media Library /wp-admin/upload.php3.23 ▲0.0137.86 ▲2.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Comment Encode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.30 ▲0.302.26 ▲0.4242.32 ▼1.43
Dashboard /wp-admin2,195 ▲185.60 ▼0.1088.83 ▼11.0238.98 ▼3.81
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0337.09 ▼3.5831.93 ▼5.01
Add New Post /wp-admin/post-new.php1,526 ▼2217.79 ▼5.38624.25 ▼17.3353.91 ▲4.57
Media Library /wp-admin/upload.php1,394 ▼94.24 ▼0.0298.76 ▼9.8343.16 ▼0.57

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-comment-encode/wp-comment-encode.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wysiwyg, comments, quicktags, encode

wp-comment-encode/wp-comment-encode.php Passed 13 tests

"WP Comment Encode" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Easily include raw markup languages (HTML, CSS, PHP, etc.) in WordPress comments using custom quicktags.

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected