Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/beatport-discography-shortcode/beatport-discography-shortcode.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; BeatportDiscography_shortcode has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.00ms] Passed 4 tests
A check of server-side resources used by Beatport Discography shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.13 ▲2.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.60 ▼2.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.48 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.21 ▼8.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.86 ▼0.74 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beatport Discography shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲155 | 13.91 ▼0.46 | 13.84 ▲11.52 | 43.32 ▼7.54 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▼0.05 | 97.39 ▼9.97 | 38.66 ▼2.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 34.15 ▼4.45 | 34.25 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.30 ▼0.02 | 669.04 ▼12.84 | 53.09 ▼0.58 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▲0.04 | 98.20 ▼3.04 | 42.79 ▼3.47 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beatport-discography-shortcode/beatport-discography-shortcode.php:41
- > 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 86% from 29 tests
readme.txt 75% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (New button on toolbar)
- Contributors: Contributors not specified
- Screenshots: These screenshots lack descriptions #7, #8 in beatport-discography-shortcode/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== beatport-discography-shortcode ===
)
beatport-discography-shortcode/beatport-discography-shortcode.php Passed 13 tests
The primary PHP file in "Beatport Discography shortcode" version 1.3.8 is used by WordPress to initiate all plugin functionality
43 characters long description:
Embed Beatport Discography using shortcodes
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
There were no executable files found in this plugin1,776 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 115 | 88 | 535 |
CSS | 3 | 67 | 22 | 489 |
PHP | 1 | 98 | 64 | 408 |
HTML | 1 | 61 | 0 | 344 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/beatport-shortcode-button.png | 3.57KB | 0.86KB | ▼ 75.92% |
image/icon-pause.png | 0.21KB | 0.24KB | 0.00% |
image/key-play-pause.png | 3.98KB | 0.67KB | ▼ 83.07% |
image/icon-play.png | 0.28KB | 0.31KB | 0.00% |