84% mclovin

Code Review | McLovin

WordPress plugin McLovin scored 84% from 54 tests.

About plugin

  • Plugin page: mclovin
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2
  • WordPress version: 6.3.1
  • First release: May 3, 2023
  • Latest release: May 3, 2023
  • Number of updates: 9
  • Update frequency: every 2.9 days
  • Top authors: jonkastonka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 247 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by McLovin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.99 ▼5.11
Dashboard /wp-admin3.31 ▲0.0145.35 ▼1.01
Posts /wp-admin/edit.php3.36 ▲0.0148.47 ▼1.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.36 ▼2.85
Media Library /wp-admin/upload.php3.23 ▲0.0032.72 ▼3.32

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by McLovin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.71 ▼0.931.59 ▼0.2037.21 ▼10.58
Dashboard /wp-admin2,206 ▲214.85 ▼1.06110.22 ▲9.5139.09 ▼3.76
Posts /wp-admin/edit.php2,086 ▼31.99 ▲0.0339.41 ▼3.3336.22 ▲1.77
Add New Post /wp-admin/post-new.php1,540 ▲2123.29 ▼0.27646.46 ▼21.6067.88 ▲14.55
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.1196.65 ▼4.7542.14 ▼2.46

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mclovin/inc/settings.php
    • > /wp-content/plugins/mclovin/mclovin.php
    • > /wp-content/plugins/mclovin/inc/update-options.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: pixel, facebook, content_ids, woocommerce, meta

mclovin/mclovin.php Passed 13 tests

Analyzing the main PHP file in "McLovin" version 1.0.0
119 characters long description:
Add the possibility to choose product ID in Facebook for WooCommerce, and avoid the strange forced value of SKU and Id.

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 plugin115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41314115

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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