Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.60ms] Passed 4 tests
This is a short check of server-side resources used by Amen
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 37.94 ▼5.08 |
Dashboard /wp-admin | 3.65 ▲0.35 | 48.71 ▼1.22 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 51.58 ▲5.15 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 86.89 ▼2.58 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 39.51 ▲2.50 |
Amen Settings /wp-admin/admin.php?page=amen-options | 3.52 | 33.11 |
Amen /wp-admin/admin.php?page=amen-manage-requests | 3.54 | 33.79 |
Server storage [IO: ▲0.12MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_amen_requests |
wp_amen_prayers |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
amen_version |
amen_settings |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Amen
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 13.62 ▼0.76 | 5.84 ▲3.79 | 43.09 ▲0.35 |
Dashboard /wp-admin | 2,218 ▲30 | 5.86 ▼0.04 | 104.37 ▼11.44 | 74.20 ▲30.31 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 1.99 ▼0.05 | 35.83 ▲0.75 | 33.72 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,540 ▲20 | 23.16 ▼0.04 | 609.41 ▼83.43 | 50.73 ▼9.39 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.24 ▲0.05 | 117.66 ▲12.27 | 47.59 ▲6.05 |
Amen Settings /wp-admin/admin.php?page=amen-options | 1,970 | 3.34 | 47.68 | 116.86 |
Amen /wp-admin/admin.php?page=amen-manage-requests | 896 | 2.02 | 23.84 | 31.81 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/amen/uninstall.php+7
Undefined index: keep_amen_options
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=amen-options
- > Notice in wp-content/plugins/amen/admin.php+346
Undefined index: wmpl_link
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=amen-options
- > User deprecated in wp-includes/functions.php+5737
Function wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.
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
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/amen/amen.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amen/amen-submit-prayer.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/amen/setup.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amen/amen-list-requests.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amen/personal-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amen/crons.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/amen/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amen/admin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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: church, amen, twitter, tweet, pray...
amen/amen.php Passed 13 tests
The principal PHP file in "Amen" v. 3.3.1 is loaded by WordPress automatically on each request
92 characters long description:
Prayer request management with counter. Alternatively, can be used as custom tweet platform.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,264 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 245 | 250 | 2,131 |
CSS | 1 | 18 | 0 | 102 |
JavaScript | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 12.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
amen.png | 0.81KB | 0.55KB | ▼ 32.25% |
logo-bullet.png | 2.90KB | 0.33KB | ▼ 88.59% |