94% automatorwp-wp-ulike-integration

Code Review | AutomatorWP - WP Ulike integration

WordPress plugin AutomatorWP - WP Ulike integration scored 94% from 54 tests.

About plugin

  • Plugin page: automatorwp-wp-ul...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 24, 2020
  • Latest release: Aug 4, 2021
  • Number of updates: 11
  • Update frequency: every 42.5 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 558 total downloads

Benchmarks

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.02MB] [CPU: ▼139.31ms] Passed 4 tests

Analyzing server-side resources used by AutomatorWP - WP Ulike integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.78 ▲12.74
Dashboard /wp-admin3.08 ▲0.0340.57 ▼2.64
Posts /wp-admin/edit.php3.13 ▲0.0347.98 ▲3.73
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.89 ▼557.88
Media Library /wp-admin/upload.php3.02 ▲0.0234.17 ▼0.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AutomatorWP - WP Ulike integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13515.81 ▲0.2913.16 ▲4.2143.22 ▼6.59
Dashboard /wp-admin2,994 ▲635.92 ▼0.31156.33 ▼1.58108.91 ▼1.98
Posts /wp-admin/edit.php2,770 ▲312.73 ▲0.0269.02 ▲3.0389.01 ▲2.15
Add New Post /wp-admin/post-new.php1,634 ▼4921.47 ▲2.74309.29 ▼76.66105.03 ▼2.70
Media Library /wp-admin/upload.php1,779 ▼285.03 ▲0.01158.64 ▲7.86124.81 ▲12.78

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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp-wp-ulike-integration/automatorwp-wp-ulike.php:238

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: like, unlike, ulike, favorite, automatorwp

automatorwp-wp-ulike-integration/automatorwp-wp-ulike.php 92% from 13 tests

"AutomatorWP - WP Ulike integration" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("automatorwp-wp-ulike-integration.php" instead of "automatorwp-wp-ulike.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
Everything looks great! No dangerous files found in this plugin319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP384186199
SVG111120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.67
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods15
▷ Static methods16.67%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin