Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼146.57ms] Passed 4 tests
A check of server-side resources used by Mastalab comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.02 | 25.72 ▼12.65 |
Dashboard /wp-admin | 3.16 ▲0.11 | 46.51 ▼1.90 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 40.76 ▼9.10 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 96.55 ▼562.63 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 32.69 ▼0.18 |
Mastalab Comments /wp-admin/options-general.php?page=mastalab-comments | 3.21 | 29.42 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_mastalab_comments_cache |
wp_mastalab_comments_users |
New WordPress options |
---|
tom79_mastalab_comments_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mastalab comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲261 | 16.74 ▲0.77 | 16.04 ▲5.84 | 47.68 ▲1.74 |
Dashboard /wp-admin | 3,010 ▲76 | 6.78 ▲0.79 | 148.28 ▼1.48 | 104.07 ▼5.89 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 3.03 ▲0.31 | 67.87 ▼5.48 | 96.06 ▲8.01 |
Add New Post /wp-admin/post-new.php | 1,643 ▼40 | 21.71 ▲3.04 | 279.81 ▼106.31 | 114.64 ▼2.71 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.42 ▲0.39 | 149.41 ▼6.09 | 110.70 ▼8.89 |
Mastalab Comments /wp-admin/options-general.php?page=mastalab-comments | 2,467 | 3.22 | 117.67 | 83.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_mastalab_comments_users
- wp_mastalab_comments_cache
- Zombie WordPress options were found after uninstall: 1 option
- tom79_mastalab_comments_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=mastalab-comments
- > Notice in wp-content/plugins/mastalab-comments/admin/partials/inc/settings.inc.php+9
session_start(): A session had already been started - ignoring
- > GET request to /wp-admin/options-general.php?page=mastalab-comments
- > Notice in wp-content/plugins/mastalab-comments/admin/partials/inc/settings.inc.php+203
Undefined index: instance_name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mastalab-comments
- > Notice in wp-content/plugins/mastalab-comments/admin/partials/inc/settings.inc.php+238
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mastalab-comments/public/partials/mastalab_comments-public-display.php
- > /wp-content/plugins/mastalab-comments/admin/partials/inc/help.inc.php
- > /wp-content/plugins/mastalab-comments/admin/partials/inc/settings.inc.php
- > /wp-content/plugins/mastalab-comments/admin/partials/inc/donate.inc.php
- > /wp-content/plugins/mastalab-comments/Class/Mastodon_api.php
- > /wp-content/plugins/mastalab-comments/admin/partials/mastalab_comments-admin-display.php
- > /wp-content/plugins/mastalab-comments/Class/CollectMastodonData.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
3 plugin tags: comments, mastalab, mastodon
mastalab-comments/mastalab_comments.php 92% from 13 tests
"Mastalab comments" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("mastalab-comments.php" instead of "mastalab_comments.php")
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
No dangerous file extensions were detected1,474 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 296 | 1,135 | 1,256 |
JavaScript | 2 | 11 | 54 | 146 |
CSS | 2 | 15 | 8 | 72 |
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 code | 0.20 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 4 | 4.04% |
▷ Public methods | 85 | 85.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 14.14% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/missing.png | 3.21KB | 3.62KB | 0.00% |