100% add-fediverse-icons-to-jetpack

Code Review | Add Fediverse Icons to Jetpack

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

About plugin

  • Plugin page: add-fediverse-ico...
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Apr 9, 2019
  • Latest release: Aug 9, 2021
  • Number of updates: 12
  • Update frequency: every 71.6 days
  • Top authors: janboddez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,069 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Add Fediverse Icons to Jetpack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0262.01 ▲11.48
Dashboard /wp-admin3.42 ▲0.0132.95 ▲0.95
Posts /wp-admin/edit.php3.65 ▲0.0135.56 ▼2.01
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.44 ▼1,192.91
Media Library /wp-admin/upload.php3.31 ▲0.0023.61 ▼5.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Fediverse Icons to Jetpack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,831 ▲7715.92 ▲0.265.83 ▼0.892.91 ▼0.01
Dashboard /wp-admin2,895 ▲346.13 ▼0.01119.71 ▼16.79157.29 ▼7.61
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0164.98 ▼0.27148.41 ▲7.68
Add New Post /wp-admin/post-new.php1,668 ▲717.46 ▲1.10393.28 ▼22.87184.88 ▲26.78
Media Library /wp-admin/upload.php1,698 ▼35.50 ▼0.03138.22 ▼5.26186.92 ▼4.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: jetpack, social, fediverse, mastodon, icons

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.3.2 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected70 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1125049
SVG10021

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.54
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 methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin