78% pray-for-me

Code Review | Pray For Me

WordPress plugin Pray For Me scored 78% from 54 tests.

About plugin

  • Plugin page: pray-for-me
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Aug 15, 2017
  • Number of updates: 20
  • Update frequency: every 15.0 days
  • Top authors: jcaruso001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.86ms] Passed 4 tests

An overview of server-side resources used by Pray For Me
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.71 ▲0.87
Dashboard /wp-admin3.34 ▲0.0344.78 ▼6.30
Posts /wp-admin/edit.php3.39 ▲0.0448.50 ▲1.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.08 ▼11.38
Media Library /wp-admin/upload.php3.26 ▲0.0335.96 ▲2.02
Pray For Me /wp-admin/admin.php?page=caruso_prayer_plugin3.2537.85
Settings /wp-admin/admin.php?page=caruso_prayer_plugin_settings3.2832.86

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pray For Me
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9114.45 ▲0.101.93 ▲0.0844.40 ▲3.45
Dashboard /wp-admin2,232 ▲445.82 ▼0.0696.00 ▼8.0575.45 ▲33.03
Posts /wp-admin/edit.php2,115 ▲262.00 ▲0.0140.84 ▲1.4937.19 ▲3.02
Add New Post /wp-admin/post-new.php1,536 ▲2223.00 ▲5.47769.48 ▲163.8052.84 ▼5.71
Media Library /wp-admin/upload.php1,414 ▲264.19 ▼0.1099.15 ▼9.6574.15 ▲28.55
Pray For Me /wp-admin/admin.php?page=caruso_prayer_plugin9042.2028.5728.59
Settings /wp-admin/admin.php?page=caruso_prayer_plugin_settings9842.5632.0642.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pray-for-me/views/admin/prayer-meta.php
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to get property 'user_email' of non-object in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 12
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to a member function display() on null in wp-content/plugins/pray-for-me/views/admin/prayer-list.php:11
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pray-for-me/pray-for-me.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pray-for-me/views/form/confirmed.php:11
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 16
    • > PHP Notice
      Trying to get property 'is_anonymous' of non-object in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 16
    • > PHP Notice
      Trying to get property 'user_last_name' of non-object in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 8
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/pray-for-me/views/admin/prayer-meta.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === pray-for-me === )
The official readme.txt is a good inspiration

pray-for-me/pray-for-me.php Passed 13 tests

"Pray For Me" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Adds ability for users to submit prayer requests.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,490 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP123337991,372
Sass211059
CSS561342
JavaScript161117

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity35.17
▷ Minimum class complexity4.00
▷ Maximum class complexity152.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods810.26%
▷ Public methods5570.51%
▷ Protected methods2329.49%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/FlamingLogoReverse.png18.38KB5.16KB▼ 71.95%
resources/images/FlamingLogo.png17.23KB8.92KB▼ 48.22%
resources/images/icon.png1.44KB0.77KB▼ 46.74%