94% comment-to-memobird

Code Review | Comment to Memobird

WordPress plugin Comment to Memobird scored 94% from 54 tests.

About plugin

  • Plugin page: comment-to-memobird
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 5.8.1
  • First release: Aug 12, 2017
  • Latest release: Aug 12, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: 0xbbc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 517 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼145.26ms] Passed 4 tests

Server-side resources used by Comment to Memobird
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1840.64 ▲14.91
Dashboard /wp-admin3.13 ▲0.0755.72 ▲3.79
Posts /wp-admin/edit.php3.18 ▲0.0748.05 ▼4.62
Add New Post /wp-admin/post-new.php5.49 ▲0.0598.65 ▼583.45
Media Library /wp-admin/upload.php3.07 ▲0.0737.31 ▲3.26
Memobird /wp-admin/options-general.php?page=kcomment-to-memobird3.0431.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Comment to Memobird
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.17 ▲0.647.44 ▼2.7354.90 ▲1.83
Dashboard /wp-admin2,978 ▲446.04 ▲0.04143.89 ▼8.52113.88 ▼12.82
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0169.25 ▼2.6799.77 ▲8.14
Add New Post /wp-admin/post-new.php1,503 ▼18018.65 ▲2.62398.74 ▼24.96125.08 ▲8.94
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.00160.79 ▼0.72129.12 ▲6.27
Memobird /wp-admin/options-general.php?page=kcomment-to-memobird1,2152.1064.2886.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function comment2memobird\\validate_file() in wp-content/plugins/comment-to-memobird/comment.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === comment-to-memobird === )
The official readme.txt is a good inspiration

comment-to-memobird/comment.php 92% from 13 tests

The main file in "Comment to Memobird" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("comment-to-memobird.php" instead of "comment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected365 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short 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.39
Average class complexity14.00
▷ Minimum class complexity12.00
▷ Maximum class complexity16.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods525.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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