84% wpgancio

Code Review | WPGancio

WordPress plugin WPGancio scored 84% from 54 tests.

About plugin

  • Plugin page: wpgancio
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 7, 2021
  • Latest release: Mar 23, 2023
  • Number of updates: 24
  • Update frequency: every 26.0 days
  • Top authors: lesion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 891 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.93ms] Passed 4 tests

A check of server-side resources used by WPGancio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0336.25 ▼6.96
Dashboard /wp-admin3.33 ▲0.0346.26 ▼0.51
Posts /wp-admin/edit.php3.38 ▲0.0247.36 ▲0.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.33 ▲2.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.07 ▼1.01
Gancio /wp-admin/options-general.php?page=wpgancio3.2229.87

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

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

Browser metrics Passed 4 tests

WPGancio: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.33 ▼1.101.82 ▼0.5042.61 ▼4.29
Dashboard /wp-admin2,210 ▲225.86 ▼0.02106.96 ▲4.0643.05 ▼1.76
Posts /wp-admin/edit.php2,093 ▲72.02 ▲0.0339.05 ▲1.9734.96 ▲1.12
Add New Post /wp-admin/post-new.php1,537 ▼522.90 ▲4.86627.57 ▲30.2747.57 ▼12.83
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0193.67 ▼9.7742.51 ▼1.65
Gancio /wp-admin/options-general.php?page=wpgancio7812.0329.9629.02

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpgancio/oauth.php
    • > /wp-content/plugins/wpgancio/settings.php
    • > /wp-content/plugins/wpgancio/wc.php
    • > /wp-content/plugins/wpgancio/gancio.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ap, events, gancio, fediverse, activity pub

wpgancio/gancio.php 92% from 13 tests

This is the main PHP file of "WPGancio" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpgancio.php" instead of "gancio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,030 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript100682
PHP49063348

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
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
No PNG images were found in this plugin