90% add-fediverse-icons-to-jetpack

Code Review | Add Fediverse Icons to Jetpack

WordPress plugin Add Fediverse Icons to Jetpack scored90%from 54 tests.

About plugin

  • Plugin page: add-fediverse-ico...
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Apr 2, 2023
  • Number of updates: 13
  • Update frequency: every 112.3 days
  • Top authors: janboddez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.82ms] Passed 4 tests

An overview of server-side resources used by Add Fediverse Icons to Jetpack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.82 ▼2.51
Dashboard /wp-admin3.32 ▼0.0343.97 ▼18.53
Posts /wp-admin/edit.php3.37 ▲0.0147.30 ▲3.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.06 ▲2.19
Media Library /wp-admin/upload.php3.24 ▲0.0136.59 ▲3.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Fediverse Icons to Jetpack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.22 ▼1.151.64 ▼0.1440.13 ▼3.06
Dashboard /wp-admin2,209 ▲215.87 ▼0.0199.89 ▼9.6037.96 ▲1.55
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0139.41 ▼1.7337.14 ▼0.67
Add New Post /wp-admin/post-new.php1,547 ▲1918.40 ▲0.11591.87 ▼44.1771.15 ▲16.48
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0497.38 ▼7.8541.58 ▼2.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social, icons, jetpack, fediverse, mastodon

add-fediverse-icons-to-jetpack/add-fediverse-icons-to-jetpack.php Passed 13 tests

The main PHP script in "Add Fediverse Icons to Jetpack" version 0.5.0 is automatically included on every request by WordPress
56 characters long description:
Add Fediverse SVG icons to Jetpack's Social Menu module.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2136052
SVG10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected