Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/itunes-charts/itunes.php+349
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.69ms] Passed 4 tests
A check of server-side resources used by iTunes Charts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.28 ▼40.33 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.50 ▼38.28 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.36 ▼44.62 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.58 ▼91.51 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.13 ▼28.43 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_itunes_plugin |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by iTunes Charts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.60 ▼0.78 | 5.08 ▲3.08 | 38.76 ▼1.70 |
Dashboard /wp-admin | 2,206 ▲57 | 5.84 ▲0.21 | 100.49 ▼0.08 | 39.22 ▼1.23 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.16 | 34.42 ▼8.33 | 33.16 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.69 ▼5.54 | 663.81 ▲25.15 | 63.25 ▲11.53 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.22 ▲0.01 | 96.57 ▼1.18 | 41.14 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/itunes-charts/itunes.php+349
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_itunes_plugin
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/itunes-charts/itunes.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== itunes-charts ===
)
itunes-charts/itunes.php 92% from 13 tests
The entry point to "iTunes Charts" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("itunes-charts.php" instead of "itunes.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
Success! There were no dangerous files found in this plugin534 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 8 | 330 |
CSS | 1 | 0 | 0 | 135 |
JavaScript | 1 | 13 | 12 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/stop.png | 0.96KB | 0.87KB | ▼ 9.34% |
lib/img/play.png | 0.99KB | 0.92KB | ▼ 6.61% |
lib/img/stop@2x.png | 1.86KB | 1.53KB | ▼ 18.02% |
lib/img/play@2x.png | 2.11KB | 1.61KB | ▼ 23.77% |