Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/pledgemusic/pledgemusic.php+276
Function create_function() is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.36ms] Passed 4 tests
An overview of server-side resources used by PledgeMusic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 5.61 ▼35.23 |
Dashboard /wp-admin | 2.16 ▼1.15 | 7.69 ▼40.07 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.68 ▼46.32 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.96 ▼91.83 |
Media Library /wp-admin/upload.php | 2.16 ▼1.08 | 7.94 ▼25.49 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
pm_options |
widget_theysaidso_widget |
widget_pledgemusic_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PledgeMusic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.32 ▼0.02 | 2.17 ▲0.37 | 42.90 ▼0.59 |
Dashboard /wp-admin | 2,201 ▲24 | 5.57 ▲0.04 | 89.03 ▼12.64 | 71.87 ▲29.80 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.00 ▲0.02 | 37.90 ▼3.48 | 33.42 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,695 ▲167 | 21.72 ▼1.56 | 679.44 ▼5.64 | 57.33 ▲2.65 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.15 ▼0.07 | 111.77 ▲8.16 | 79.23 ▲33.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pledgemusic/pledgemusic.php+276
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_pledgemusic_widget
- db_upgraded
- widget_recent-posts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pledgemusic/pledgemusic.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pledgemusic/pledgemusic.php:12
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pledgemusic ===
)
pledgemusic/pledgemusic.php Passed 13 tests
The principal PHP file in "PledgeMusic" v. 1.2.1 is loaded by WordPress automatically on each request
97 characters long description:
Provides the ability to display your PledgeMusic campaign via a sidebar widget or lightbox popup.
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
Everything looks great! No dangerous files found in this plugin1,387 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 293 | 119 | 889 |
CSS | 1 | 51 | 18 | 290 |
PHP | 1 | 19 | 50 | 208 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
22 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/fancybox/fancy_close.png | 1.48KB | 1.73KB | 0.00% |
includes/js/fancybox/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |
includes/js/fancybox/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
includes/js/fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
includes/images/pledgemusic_32.png | 5.58KB | 1.75KB | ▼ 68.68% |