Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.50ms] Passed 4 tests
A check of server-side resources used by Guitar Tabs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 41.88 ▲1.22 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.44 ▼4.28 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.55 ▼2.75 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 99.16 ▲2.94 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.21 ▼0.18 |
All Songs /wp-admin/edit.php?post_type=song | 3.41 | 37.99 |
Authors /wp-admin/edit-tags.php?taxonomy=song_author&post_type=song | 3.36 | 41.28 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=song | 3.36 | 34.23 |
Add New /wp-admin/post-new.php?post_type=song | 3.51 | 52.58 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Guitar Tabs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 14.08 ▼0.64 | 13.06 ▲11.20 | 41.29 ▼4.67 |
Dashboard /wp-admin | 2,247 ▲70 | 5.59 ▼0.01 | 88.41 ▼6.06 | 44.81 ▲0.39 |
Posts /wp-admin/edit.php | 2,158 ▲61 | 2.01 ▲0.04 | 35.73 ▼2.33 | 35.52 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,572 ▲44 | 23.38 ▲0.04 | 675.88 ▼17.21 | 62.03 ▲2.80 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.27 ▲0.16 | 97.88 ▼16.65 | 45.46 ▼5.01 |
All Songs /wp-admin/edit.php?post_type=song | 1,175 | 1.94 | 32.70 | 30.27 |
Authors /wp-admin/edit-tags.php?taxonomy=song_author&post_type=song | 1,301 | 2.19 | 26.59 | 30.27 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=song | 1,329 | 2.19 | 27.40 | 30.48 |
Add New /wp-admin/post-new.php?post_type=song | 3,609 | 8.00 | 205.23 | 75.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guitar-tabs/inc/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/guitar-tabs/inc/shortcode-gtab.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/guitar-tabs/inc/single.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guitar-tabs/inc/cpt.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guitar-tabs/inc/cpt.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guitar-tabs/inc/panel.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=genre&post_type=song
- > Javascript (severe) in unknown
/wp-content/plugins/guitar-tabs/assets/js/gtabs-song.js?ver=6.3.1 18:29 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tabs, guitar-tabs, guitar, guitar tabs, shortcodes...
guitar-tabs/guitar-tabs.php 85% from 13 tests
"Guitar Tabs" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,176 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 293 | 2,504 | 6,732 |
PHP | 7 | 70 | 65 | 375 |
CSS | 2 | 0 | 8 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
There are no PNG files in this plugin