90% mi13-like

Code Review | mi13-like

WordPress plugin mi13-like scored90%from 54 tests.

About plugin

  • Plugin page: mi13-like
  • Plugin version: 0.151
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Aug 21, 2023
  • Number of updates: 25
  • Update frequency: every 68.3 days
  • Top authors: mi13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,036 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼15.00ms] Passed 4 tests

Server-side resources used by mi13-like
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.94 ▼1.31
Dashboard /wp-admin3.40 ▲0.0648.68 ▼36.37
Posts /wp-admin/edit.php3.46 ▲0.0953.76 ▼6.80
Add New Post /wp-admin/post-new.php5.99 ▲0.0986.53 ▼14.00
Media Library /wp-admin/upload.php3.33 ▲0.0937.41 ▼2.84
mi13-like /wp-admin/options-general.php?page=mi13_like3.3135.45

Server storage [IO: ▲0.05MB] [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: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
mi13_like
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for mi13-like
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.121.65 ▼0.0146.50 ▲2.42
Dashboard /wp-admin2,202 ▲285.61 ▼0.0884.44 ▼16.7839.53 ▼3.65
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.1140.48 ▲2.5238.99 ▲2.70
Add New Post /wp-admin/post-new.php1,529 ▲323.56 ▲0.04687.11 ▼29.7763.37 ▲9.25
Media Library /wp-admin/upload.php1,398 ▼54.17 ▼0.04109.64 ▲9.4849.02 ▲3.29
mi13-like /wp-admin/options-general.php?page=mi13_like1,1342.2529.1028.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2 in mi13-like/assets to your readme.txt
You can take inspiration from this readme.txt

mi13-like/mi13-like.php Passed 13 tests

The entry point to "mi13-like" version 0.151 is a PHP file that has certain tags in its header comment area
32 characters long description:
The plugin likes for your posts.

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 plugin837 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP13019442
CSS385193
PO File1243164
JavaScript36663
HTML12262
SVG10012
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions18
▷ Named functions18100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png4.46KB2.89KB▼ 35.24%