84% the-joshua-project-daily-unreached-people-widget

Code Review | The Joshua Project, Daily Unreached People Widget

WordPress plugin The Joshua Project, Daily Unreached People Widget scored 84% from 54 tests.

About plugin

  • Plugin page: the-joshua-projec...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 5.8.1
  • First release: Oct 6, 2014
  • Latest release: May 13, 2019
  • Number of updates: 6
  • Update frequency: every 280.8 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,367 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▲565.70ms] 75% from 4 tests

Analyzing server-side resources used by The Joshua Project, Daily Unreached People Widget
It is recommended to improve the following
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 565.70ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.17758.07 ▲723.18
Dashboard /wp-admin3.17 ▲0.11794.57 ▲729.85
Posts /wp-admin/edit.php3.23 ▲0.12764.66 ▲712.20
Add New Post /wp-admin/post-new.php5.47 ▲0.03798.58 ▲136.99
Media Library /wp-admin/upload.php3.06 ▲0.05726.26 ▲690.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for The Joshua Project, Daily Unreached People Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.84 ▲0.2810.53 ▼2.6552.72 ▼10.23
Dashboard /wp-admin2,967 ▲316.08 ▲0.10156.51 ▼3.54122.24 ▼10.01
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0165.82 ▼10.37101.30 ▼3.07
Add New Post /wp-admin/post-new.php1,872 ▲18915.08 ▼3.62453.07 ▲27.34126.69 ▼1.91
Media Library /wp-admin/upload.php1,807 ▼04.99 ▼0.03162.91 ▼11.43128.41 ▼21.22

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_joshua-project-daily-unreached-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-joshua-project-daily-unreached-people-widget/joshua-project-daily-unreached.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: widget

the-joshua-project-daily-unreached-people-widget/joshua-project-daily-unreached.php 92% from 13 tests

The entry point to "The Joshua Project, Daily Unreached People Widget" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-joshua-project-daily-unreached-people-widget.php" instead of "joshua-project-daily-unreached.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin