89% cookingrush-emoji-inside-comment

Code Review | CookingRush emoji inside comment

WordPress plugin CookingRush emoji inside comment scored89%from 54 tests.

About plugin

  • Plugin page: cookingrush-emoji...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2023
  • Latest release: Oct 26, 2023
  • Number of updates: 3
  • Update frequency: every 11.0 days
  • Top authors: cookingrushdotnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by CookingRush emoji inside comment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.96 ▲2.05
Dashboard /wp-admin3.33 ▲0.0344.66 ▼3.18
Posts /wp-admin/edit.php3.39 ▲0.0244.56 ▼0.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0280.81 ▼11.32
Media Library /wp-admin/upload.php3.26 ▲0.0237.51 ▲3.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
cookingrush_matisweb_jafar_comment_db_version
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by CookingRush emoji inside comment
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.261.68 ▼0.0240.88 ▲1.99
Dashboard /wp-admin2,195 ▲155.51 ▼0.1581.52 ▼5.3042.21 ▲1.85
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0334.62 ▼0.4734.61 ▼1.44
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▼0.13668.97 ▲38.8360.91 ▼6.23
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0295.10 ▼6.6941.22 ▼0.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: emoji, cookingrush, comment, comment form, emoji meaning...

cookingrush-emoji-inside-comment/index.php 77% from 13 tests

"CookingRush emoji inside comment" version 1.1'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:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cookingrush-emoji-inside-comment.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22823150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected