Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼136.34ms] Passed 4 tests
This is a short check of server-side resources used by Phanes Care Initiative
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 28.99 ▲7.87 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.55 ▲1.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.25 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 91.56 ▼543.50 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.16 ▼3.65 |
Phanes DS /wp-admin/options-general.php?page=phanes-ds | 2.98 | 25.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Phanes Care Initiative
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲80 | 16.26 ▲0.67 | 8.69 ▲1.31 | 44.54 ▼0.81 |
Dashboard /wp-admin | 2,975 ▲44 | 5.86 ▼0.27 | 131.80 ▼10.73 | 107.28 ▼1.81 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.01 | 67.03 ▲3.52 | 85.50 ▼6.37 |
Add New Post /wp-admin/post-new.php | 1,675 ▲3 | 18.90 ▲0.20 | 366.88 ▲13.96 | 106.84 ▼2.94 |
Media Library /wp-admin/upload.php | 1,809 ▼1 | 5.02 ▼0.00 | 153.79 ▲11.59 | 115.37 ▼13.46 |
Phanes DS /wp-admin/options-general.php?page=phanes-ds | 1,041 | 2.05 | 56.34 | 78.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: donorschoose, education project, phanes
phanes-care-initiative/phanes-donorschoose.php 69% from 13 tests
Analyzing the main PHP file in "Phanes Care Initiative" version 1.0.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("phanes-care-initiative.php" instead of "phanes-donorschoose.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
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
Good job! No executable or dangerous file extensions detected348 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 47 | 84 | 171 |
CSS | 1 | 27 | 0 | 135 |
JavaScript | 1 | 3 | 3 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 3 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin