68% amen

Code Review | Amen

WordPress plugin Amen scored68%from 54 tests.

About plugin

  • Plugin page: amen
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Dec 9, 2012
  • Latest release: Aug 23, 2013
  • Number of updates: 49
  • Update frequency: every 5.2 days
  • Top authors: UaMV (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /8,326 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2537.94 ▼5.08
Dashboard /wp-admin3.65 ▲0.3548.71 ▼1.22
Posts /wp-admin/edit.php3.77 ▲0.4151.58 ▲5.15
Add New Post /wp-admin/post-new.php6.23 ▲0.3486.89 ▼2.58
Media Library /wp-admin/upload.php3.58 ▲0.3439.51 ▲2.50
Amen Settings /wp-admin/admin.php?page=amen-options3.5233.11
Amen /wp-admin/admin.php?page=amen-manage-requests3.5433.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.62 ▼0.765.84 ▲3.7943.09 ▲0.35
Dashboard /wp-admin2,218 ▲305.86 ▼0.04104.37 ▼11.4474.20 ▲30.31
Posts /wp-admin/edit.php2,113 ▲271.99 ▼0.0535.83 ▲0.7533.72 ▼0.24
Add New Post /wp-admin/post-new.php1,540 ▲2023.16 ▼0.04609.41 ▼83.4350.73 ▼9.39
Media Library /wp-admin/upload.php1,415 ▲274.24 ▲0.05117.66 ▲12.2747.59 ▲6.05
Amen Settings /wp-admin/admin.php?page=amen-options1,9703.3447.68116.86
Amen /wp-admin/admin.php?page=amen-manage-requests8962.0223.8431.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP102452502,131
CSS1180102
JavaScript10131

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 code0.58
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity12.25
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
amen.png0.81KB0.55KB▼ 32.25%
logo-bullet.png2.90KB0.33KB▼ 88.59%