74% pray-for-the-nations

Code Review | Pray for the Nations

WordPress plugin Pray for the Nations scored74%from 54 tests.

About plugin

  • Plugin page: pray-for-the-nations
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Feb 9, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: andy_moyle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /121 total downloads

Benchmarks

Plugin footprint 65% 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.00MB] [CPU: ▼2.27ms] Passed 4 tests

An overview of server-side resources used by Pray for the Nations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.89 ▲3.73
Dashboard /wp-admin3.31 ▲0.0147.84 ▼0.76
Posts /wp-admin/edit.php3.36 ▲0.0047.04 ▲1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.19 ▼10.96
Media Library /wp-admin/upload.php3.23 ▲0.0032.92 ▲0.80

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 270 new files
Database: 1 new table, 6 new options
New tables
wp_world_prayer
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Pray for the Nations
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.33 ▼1.241.72 ▼0.2143.62 ▲0.94
Dashboard /wp-admin2,222 ▲515.84 ▼0.06104.59 ▼11.1641.15 ▼0.05
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0038.74 ▼0.6435.34 ▲3.03
Add New Post /wp-admin/post-new.php1,548 ▲1523.32 ▲0.12622.99 ▼14.9857.23 ▼1.17
Media Library /wp-admin/upload.php1,404 ▲134.22 ▲0.0096.76 ▼7.7243.35 ▲0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_world_prayer
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/pray-for-the-nations/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: prayer, nations, cia factbook

pray-for-the-nations/index.php 92% from 13 tests

The main PHP script in "Pray for the Nations" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pray-for-the-nations.php" instead of "index.php")

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
No dangerous file extensions were detected12,204 lines of code in 268 files:
LanguageFilesBlank linesComment linesLines of code
SVG2670011,732
PHP19258472

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin