Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.29ms] Passed 4 tests
Analyzing server-side resources used by Chords and Lyrics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.14 ▼4.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.85 ▼4.49 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.27 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.40 ▼12.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.27 ▼2.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Chords and Lyrics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.82 ▲0.39 | 1.63 ▼0.12 | 39.09 ▼5.75 |
Dashboard /wp-admin | 2,200 ▲11 | 5.83 ▲0.93 | 106.62 ▼14.61 | 35.83 ▼10.14 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.00 | 39.88 ▲3.34 | 35.38 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 17.74 ▼5.43 | 656.67 ▲10.43 | 55.55 ▼1.40 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.32 ▲0.13 | 94.40 ▼1.32 | 42.51 ▼1.30 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chords-and-lyrics/ChordsAndLyrics.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (User option section on settings->reading page allows control of chords and/or lyrics display.)
chords-and-lyrics/ChordsAndLyrics.php 92% from 13 tests
Analyzing the main PHP file in "Chords and Lyrics" version 1.7
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chords-and-lyrics.php" instead of "ChordsAndLyrics.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
Everything looks great! No dangerous files found in this plugin402 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 122 | 402 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 103.00 |
▷ Minimum class complexity | 103.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 8.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.85KB | 14.89KB | ▼ 6.09% |