Benchmarks
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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 758.07 ▲723.18 |
Dashboard /wp-admin | 3.17 ▲0.11 | 794.57 ▲729.85 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 764.66 ▲712.20 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 798.58 ▲136.99 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 726.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 |
---|
widget_joshua-project-daily-unreached-widget |
Browser metrics Passed 4 tests
Checking browser requirements for The Joshua Project, Daily Unreached People Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.84 ▲0.28 | 10.53 ▼2.65 | 52.72 ▼10.23 |
Dashboard /wp-admin | 2,967 ▲31 | 6.08 ▲0.10 | 156.51 ▼3.54 | 122.24 ▼10.01 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.01 | 65.82 ▼10.37 | 101.30 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,872 ▲189 | 15.08 ▼3.62 | 453.07 ▲27.34 | 126.69 ▼1.91 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.99 ▼0.03 | 162.91 ▼11.43 | 128.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 47 | 51 | 82 |
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 code | 0.12 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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