88% tako-movable-comments

Code Review | Tako Movable Comments

WordPress plugin Tako Movable Comments scored 88% from 54 tests.

About plugin

  • Plugin page: tako-movable-comm...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Feb 13, 2013
  • Latest release: Oct 14, 2016
  • Number of updates: 39
  • Update frequency: every 34.4 days
  • Top authors: RenettaRenula (100%)

Code review

54 tests

User reviews

75 reviews

Install metrics

2,000+ active / 18,553 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Tako Movable Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0133.86 ▼3.69
Dashboard /wp-admin3.07 ▲0.0247.03 ▲8.06
Posts /wp-admin/edit.php3.12 ▲0.0248.74 ▼1.14
Add New Post /wp-admin/post-new.php5.44 ▲0.0197.51 ▼573.11
Media Library /wp-admin/upload.php3.01 ▲0.0134.49 ▼7.24

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Tako Movable Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.86 ▲0.347.68 ▲0.3047.37 ▼4.08
Dashboard /wp-admin2,989 ▲525.95 ▼0.24139.98 ▼6.49117.59 ▼5.25
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1270.24 ▲4.12103.17 ▲11.09
Add New Post /wp-admin/post-new.php1,683 ▲1318.72 ▼0.46401.51 ▲17.41114.16 ▲5.22
Media Library /wp-admin/upload.php1,810 ▼05.01 ▲0.01150.14 ▼1.32129.70 ▼0.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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 0% 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tako-movable-comments/views/bulk.view.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tako-movable-comments/tako.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/tako-movable-comments/views/script.view.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

tako-movable-comments/tako.php 85% from 13 tests

The main PHP file in "Tako Movable Comments" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 254 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tako-movable-comments.php" instead of "tako.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,950 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35613083,269
PHP4116128353
CSS21825308
Markdown19020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
img/chosen-sprite.png0.63KB0.88KB0.00%