Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼260.97ms] Passed 4 tests
An overview of server-side resources used by Spotify Follow Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 44.83 ▲24.09 |
Dashboard /wp-admin | 3.08 ▲0.03 | 41.84 ▼5.54 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 45.97 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 97.57 ▼1,031.42 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.03 ▼10.21 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ac_spotify_follow_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Spotify Follow Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 15.98 ▲0.39 | 10.04 ▲0.77 | 48.52 ▲0.42 |
Dashboard /wp-admin | 2,930 ▲80 | 5.94 ▲0.11 | 142.77 ▲5.42 | 108.02 ▲1.40 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.70 ▲0.02 | 68.61 ▲0.70 | 98.76 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,853 ▲276 | 19.20 ▲2.33 | 406.82 ▲3.47 | 116.07 ▼9.02 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 4.99 ▼0.01 | 169.13 ▲7.33 | 117.86 ▼1.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_ac_spotify_follow_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spotify-follow-button-widget/spotify-follow.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== spotify-follow-button-widget ===
)
spotify-follow-button-widget/spotify-follow.php 85% from 13 tests
The principal PHP file in "Spotify Follow Widget" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("spotify-follow-button-widget.php" instead of "spotify-follow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected74 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 34 | 74 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin