Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼182.14ms] Passed 4 tests
A check of server-side resources used by Tune Library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 35.01 ▲1.86 |
Dashboard /wp-admin | 3.20 ▲0.15 | 50.35 ▲10.51 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 45.90 ▼17.86 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 97.44 ▼704.69 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 33.04 ▼7.88 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_tracks |
New WordPress options |
---|
TuneLibraryPP |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tune Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲146 | 15.94 ▲0.37 | 10.64 ▲0.16 | 53.56 ▲7.27 |
Dashboard /wp-admin | 2,976 ▲46 | 5.99 ▲0.03 | 147.57 ▼29.95 | 114.16 ▲4.57 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▼0.01 | 65.53 ▼13.64 | 85.88 ▼45.77 |
Add New Post /wp-admin/post-new.php | 1,690 ▲190 | 18.49 ▲0.04 | 387.58 ▲11.91 | 110.55 ▼1.50 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.03 ▲0.02 | 154.76 ▲1.59 | 110.93 ▼8.65 |
Tune Library /wp-admin/tune-library.php | 26 | 0.90 | 0.10 | 10.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_tracks
- This plugin does not fully uninstall, leaving 1 option in the database
- TuneLibraryPP
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tune-library/js/folder-tree-static.js.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tune-library/tune-library.php:976
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/tune-library.php
- > Network (severe)
wp-admin/tune-library.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The Tune Library Configuration Screen), #2 (A sample output of the Tune Library plugin when used inside of a Wordpress page)
tune-library/tune-library.php Passed 13 tests
This is the main PHP file of "Tune Library" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
A plugin that can be used to import an iTunes Library into a MySQl database and display the contents of the collection on a Wordpress Page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,703 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 293 | 102 | 1,238 |
JavaScript | 3 | 52 | 45 | 258 |
CSS | 3 | 39 | 6 | 199 |
SQL | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin