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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 62.01 ▲11.48 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.95 ▲0.95 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.56 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.44 ▼1,192.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.00 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,831 ▲77 | 15.92 ▲0.26 | 5.83 ▼0.89 | 2.91 ▼0.01 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.01 | 119.71 ▼16.79 | 157.29 ▼7.61 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 64.98 ▼0.27 | 148.41 ▲7.68 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 17.46 ▲1.10 | 393.28 ▼22.87 | 184.88 ▲26.78 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.50 ▼0.03 | 138.22 ▼5.26 | 186.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 50 | 49 |
SVG | 1 | 0 | 0 | 21 |
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 code | 0.54 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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