84% pray-in-life

Code Review | pray in life

WordPress plugin pray in life scored84%from 54 tests.

About plugin

  • Plugin page: pray-in-life
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2+
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: Sep 27, 2017
  • Number of updates: 8
  • Update frequency: every 151.8 days
  • Top authors: nukaga (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼15.12ms] Passed 4 tests

Analyzing server-side resources used by pray in life
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.21 ▲0.27
Dashboard /wp-admin3.32 ▼0.0346.18 ▼19.74
Posts /wp-admin/edit.php3.37 ▲0.0143.01 ▼3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.83 ▼34.56
Media Library /wp-admin/upload.php3.24 ▲0.0133.22 ▼2.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for pray in life
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.25 ▼0.101.58 ▼0.1738.44 ▼3.65
Dashboard /wp-admin2,200 ▲235.53 ▼0.1181.44 ▼13.8842.23 ▲0.36
Posts /wp-admin/edit.php2,105 ▲82.11 ▲0.1433.16 ▼4.0541.55 ▲6.72
Add New Post /wp-admin/post-new.php1,601 ▲7322.55 ▼0.65688.04 ▲16.9166.63 ▼0.80
Media Library /wp-admin/upload.php1,402 ▲24.23 ▼0.00101.01 ▼9.0456.40 ▲9.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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)
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pray-in-life/pray-in-life.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided

pray-in-life/pray-in-life.php Passed 13 tests

The primary PHP file in "pray in life" version 1.0 is used by WordPress to initiate all plugin functionality
79 characters long description:
This is not just a plugin, from "nukagajunko.com" to display words like prayer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192055

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin