Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by Lewe ChordPress - ChordPro Text Formatter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.46 ▼4.66 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.75 ▼11.00 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.87 ▲3.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.26 ▼4.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 31.91 ▼5.33 |
Add New /wp-admin/post-new.php?post_type=guitar_chord | 3.35 | 50.21 |
Options /wp-admin/admin.php?page=chordpress/admin/partials/chordpress-admin-options.php | 3.90 | 47.56 |
Guitar Chords /wp-admin/edit.php?post_type=guitar_chord | 3.33 | 36.01 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=guitar_chord | 3.27 | 32.67 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=guitar_chord | 3.27 | 36.00 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
category_children |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Lewe ChordPress - ChordPro Text Formatter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲183 | 15.67 ▲0.90 | 6.47 ▲4.57 | 37.46 ▼6.39 |
Dashboard /wp-admin | 2,250 ▲76 | 5.92 ▲0.28 | 96.91 ▼0.94 | 75.49 ▲28.41 |
Posts /wp-admin/edit.php | 2,167 ▲70 | 2.84 ▲0.90 | 43.18 ▲7.05 | 42.78 ▲9.90 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 25.54 ▲2.40 | 661.50 ▼62.71 | 38.24 ▼22.08 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 5.50 ▲1.22 | 105.23 ▼8.54 | 76.04 ▲27.84 |
Add New /wp-admin/post-new.php?post_type=guitar_chord | 2,005 | 3.83 | 75.48 | 74.59 |
Options /wp-admin/admin.php?page=chordpress/admin/partials/chordpress-admin-options.php | 2,502 | 3.20 | 39.54 | 81.58 |
Guitar Chords /wp-admin/edit.php?post_type=guitar_chord | 1,213 | 2.88 | 35.23 | 30.36 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=guitar_chord | 1,389 | 2.67 | 31.23 | 32.62 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=guitar_chord | 1,522 | 2.71 | 30.10 | 34.76 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- category_children
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/chordpress/public/partials/chordpress-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: music, chords, sheet, sound, chord...
chordpress/chordpress.php Passed 13 tests
The entry point to "Lewe ChordPress - ChordPro Text Formatter" version 3.6.0 is a PHP file that has certain tags in its header comment area
82 characters long description:
This plugin renders ChordPro formatted text and chord diagrams in WordPress sites.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .cmd - Command Script in Windows
- ☣ wp-content/plugins/chordpress/makepot.cmd
- .cmd - Command Script in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,339 | 1,132 | 5,910 |
CSS | 2 | 975 | 148 | 5,092 |
PHP | 17 | 571 | 2,417 | 3,462 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 2 | 1.50% |
▷ Public methods | 114 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.78MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-256x256.png | 55.93KB | 19.50KB | ▼ 65.14% |
admin/images/icon-96x96.png | 12.30KB | 4.44KB | ▼ 63.89% |
admin/images/banner-300x97.png | 20.66KB | 9.47KB | ▼ 54.18% |
admin/images/icon-20x20.png | 2.73KB | 1.12KB | ▼ 58.83% |
admin/images/banner-247x80.png | 15.43KB | 7.23KB | ▼ 53.15% |