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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.51ms] Passed 4 tests
A check of server-side resources used by hearthis.at
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.95 ▼1.33 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.80 ▼0.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.76 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.75 ▼11.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.46 ▲2.47 |
hearthis.at /wp-admin/options-general.php?page=hearthis-shortcode-options | 3.22 | 32.72 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by hearthis.at
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.46 ▼0.91 | 1.75 ▲0.02 | 43.57 ▲2.21 |
Dashboard /wp-admin | 2,241 ▲53 | 5.07 ▼0.86 | 95.23 ▼8.87 | 71.41 ▲32.13 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.28 ▲0.29 | 36.65 ▼0.90 | 34.36 ▲4.16 |
Add New Post /wp-admin/post-new.php | 1,553 ▲17 | 22.95 ▼0.47 | 748.87 ▲161.91 | 36.32 ▼20.79 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.35 ▲0.14 | 94.88 ▼5.54 | 86.58 ▲36.52 |
hearthis.at /wp-admin/options-general.php?page=hearthis-shortcode-options | 1,267 | 2.34 | 46.99 | 30.68 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hearthisat/public/partials/hearthis-public-display.php
- > /wp-content/plugins/hearthisat/admin/partials/hearthis-admin-display.php
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (with a single Track), #2 (... or with a playlist or set), #3 (... or if the url is a profile)
hearthisat/hearthis.php 77% from 13 tests
Analyzing the main PHP file in "hearthis.at" version 1.0.1
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 272 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hearthisat.php" instead of "hearthis.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected990 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 225 | 891 | 891 |
JavaScript | 2 | 29 | 54 | 99 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 24 | 43.64% |
▷ Protected methods | 5 | 9.09% |
▷ Private methods | 26 | 47.27% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
6 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot_profile.png | 99.83KB | 33.86KB | ▼ 66.08% |
screenshot_track.png | 51.86KB | 19.45KB | ▼ 62.50% |
screenshot_playlist.png | 75.30KB | 28.27KB | ▼ 62.46% |
screenshot-1.png | 51.86KB | 19.45KB | ▼ 62.50% |
admin/img/icon.png | 3.44KB | 0.73KB | ▼ 78.75% |