Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/christian-hymns/ChristianHymns_Plugin.php+29
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.96MB] [CPU: ▼63.56ms] Passed 4 tests
This is a short check of server-side resources used by Christian Hymns
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.60 ▼43.51 |
Dashboard /wp-admin | 2.06 ▼1.28 | 5.87 ▼58.76 |
Posts /wp-admin/edit.php | 2.06 ▼1.30 | 6.96 ▼46.64 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 5.33 ▼105.32 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 6.44 ▼30.05 |
Christian Hymns /wp-admin/plugins.php?page=ChristianHymns_PluginSettings | 2.07 | 7.14 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 16 new options
New WordPress options |
---|
category_hymns_hp |
wp_calendar_block_has_published_posts |
can_compress_scripts |
ChristianHymns_Plugin_CanDoSomething |
theysaidso_admin_options |
ChristianHymns_Plugin__installed |
ChristianHymns_Plugin_ATextInput |
category_hymns_cc |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Christian Hymns
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲219 | 14.38 ▼0.24 | 2.14 ▲0.29 | 44.56 ▲4.04 |
Dashboard /wp-admin | 2,219 ▲39 | 5.66 ▼0.02 | 86.69 ▼4.88 | 41.12 ▼0.50 |
Posts /wp-admin/edit.php | 2,540 ▲440 | 2.04 ▲0.02 | 36.58 ▼4.38 | 34.91 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.11 ▼0.18 | 662.53 ▼37.40 | 56.11 ▼0.15 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.22 ▼0.04 | 98.14 ▼7.24 | 45.75 ▼2.91 |
Christian Hymns /wp-admin/plugins.php?page=ChristianHymns_PluginSettings | 995 | 2.03 | 28.59 | 42.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style-christian-hymns-a handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 16 options
- ChristianHymns_Plugin_AmAwesome
- db_upgraded
- category_hymns_cc
- ChristianHymns_Plugin__version
- ChristianHymns_Plugin_ATextInput
- ChristianHymns_Plugin__installed
- widget_theysaidso_widget
- ChristianHymns_Plugin_CanDoSomething
- category_hymns_hcc
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=ChristianHymns_PluginSettings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style-christian-hymns-a handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/christian-hymns/scripts/install/actives-plugins.php on line 2
- > PHP Warning
include_once(CHRISTIAN_HYMNS_DIRChristianHymns_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/christian-hymns/scripts/shortcodes/list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ChristianHymns_ShortCodeLoader' not found in wp-content/plugins/christian-hymns/scripts/shortcodes/list.php:3
- > PHP Warning
include_once(CHRISTIAN_HYMNS_DIRChristianHymns_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/christian-hymns/scripts/shortcodes/player.php on line 2
- > PHP Warning
Use of undefined constant CHRISTIAN_HYMNS_DIR - assumed 'CHRISTIAN_HYMNS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/christian-hymns/scripts/shortcodes/player.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/christian-hymns/scripts/install/actives-plugins.php:6
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/christian-hymns/scripts/install/actives-plugins.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ChristianHymns_ShortCodeLoader' not found in wp-content/plugins/christian-hymns/scripts/shortcodes/player.php:3
- > PHP Warning
include_once(): Failed opening 'CHRISTIAN_HYMNS_DIRChristianHymns_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/christian-hymns/scripts/shortcodes/player.php on line 2
- > PHP Warning
include_once(): Failed opening 'CHRISTIAN_HYMNS_DIRChristianHymns_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/christian-hymns/scripts/shortcodes/list.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (Download the database with the hymns. Baixe o Banco de dados com os hinos.)
christian-hymns/christian-hymns.php Passed 13 tests
The primary PHP file in "Christian Hymns" version 2.2 is used by WordPress to initiate all plugin functionality
87 characters long description:
Several hymns for traditional Christian worship. Learn to sing with letters and Melody.
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 plugin877 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 336 | 626 | 868 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 62.16% |
▷ Protected methods | 28 | 37.84% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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
6 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 9.65KB | 4.13KB | ▼ 57.20% |
images/banner-772x250.png | 23.09KB | 8.60KB | ▼ 62.76% |
screenshot-1.png | 83.00KB | 38.09KB | ▼ 54.10% |
assets/icon-128x128.png | 6.13KB | 2.73KB | ▼ 55.52% |
assets/banner-772x250.png | 23.09KB | 8.60KB | ▼ 62.76% |