Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.39ms] Passed 4 tests
Analyzing server-side resources used by F13 Last.fm album Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.40 ▼0.98 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.33 ▼15.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.10 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.57 ▼14.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.79 ▲1.97 |
F13 Last.fm Album Shortcode /wp-admin/options-general.php?page=f13-lastfm-album-shortcode | 3.20 | 33.57 |
Server storage [IO: ▲0.66MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for F13 Last.fm album Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲24 | 14.37 ▼0.27 | 1.83 ▼0.44 | 46.70 ▲3.10 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.06 | 93.13 ▲2.08 | 36.29 ▼10.99 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.00 ▼0.04 | 39.72 ▼1.25 | 35.30 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▼3 | 23.72 ▲0.92 | 683.56 ▲57.00 | 60.27 ▼3.49 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▲0.10 | 104.76 ▲1.49 | 46.14 ▲0.03 |
F13 Last.fm Album Shortcode /wp-admin/options-general.php?page=f13-lastfm-album-shortcode | 878 | 2.04 | 23.55 | 28.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/f13-lastfm-album-shortcode/wp-last.fm-album-shortcode.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== f13-lastfm-album-shortcode ===
) - Screenshots: Screenshot #1 (An example showing the results of the shortcode [album artist="Queen" album="Greatest Hits"]) image missing
f13-lastfm-album-shortcode/wp-last.fm-album-shortcode.php 92% from 13 tests
The main PHP file in "F13 Last.fm album Shortcode" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("f13-lastfm-album-shortcode.php" instead of "wp-last.fm-album-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin340 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 124 | 235 |
CSS | 1 | 12 | 0 | 70 |
Markdown | 1 | 12 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.61MB with 0.41MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 621.12KB | 204.30KB | ▼ 67.11% |