84% like-me-if-you-like-this-article

Code Review | Like me if you like this article

WordPress plugin Like me if you like this article scored84%from 54 tests.

About plugin

  • Plugin page: like-me-if-you-li...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2015
  • Latest release: Apr 19, 2016
  • Number of updates: 36
  • Update frequency: every 3.9 days
  • Top authors: mayukojpn (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /5,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Like me if you like this article
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.72 ▼4.36
Dashboard /wp-admin3.32 ▲0.0243.54 ▼2.01
Posts /wp-admin/edit.php3.37 ▲0.0144.26 ▼0.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.35 ▼12.38
Media Library /wp-admin/upload.php3.24 ▲0.0130.88 ▼3.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Like me if you like this article
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.75 ▼0.6129.25 ▲27.6436.78 ▼4.82
Dashboard /wp-admin2,195 ▲185.54 ▼0.1182.94 ▼7.9137.42 ▼4.44
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0134.06 ▼5.3933.78 ▲1.86
Add New Post /wp-admin/post-new.php1,535 ▲718.25 ▼4.92632.10 ▼18.8062.73 ▲10.79
Media Library /wp-admin/upload.php1,394 ▼64.12 ▼0.0898.14 ▼2.8942.73 ▼2.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 add_action() in wp-content/plugins/like-me-if-you-like-this-article/mamahack.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: facebook, twitter

like-me-if-you-like-this-article/mamahack.php 92% from 13 tests

"Like me if you like this article" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("like-me-if-you-like-this-article.php" instead of "mamahack.php")

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 plugin267 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12215126
CSS100101
PO File1131540

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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
There are no PNG files in this plugin