Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.76MB] [CPU: ▼185.34ms] Passed 4 tests
This is a short check of server-side resources used by NGO-list
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.85 | 7.27 ▼18.97 |
Dashboard /wp-admin | 1.89 ▼1.17 | 7.86 ▼31.26 |
Posts /wp-admin/edit.php | 1.89 ▼1.22 | 7.36 ▼35.80 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.54 | 8.24 ▼646.64 |
Media Library /wp-admin/upload.php | 1.89 ▼1.12 | 9.56 ▼27.67 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1.89 | 8.48 |
Add New /wp-admin/link-add.php | 1.89 | 8.89 |
All Links /wp-admin/link-manager.php | 1.90 | 8.03 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_links |
Browser metrics Passed 4 tests
A check of browser resources used by NGO-list
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲151 | 15.97 ▲0.08 | 10.02 ▲2.02 | 47.77 ▼3.71 |
Dashboard /wp-admin | 3,013 ▲79 | 5.95 ▲0.04 | 136.27 ▼12.08 | 110.78 ▲6.00 |
Posts /wp-admin/edit.php | 2,779 ▲43 | 2.70 ▲0.02 | 66.55 ▲0.27 | 100.25 ▲4.40 |
Add New Post /wp-admin/post-new.php | 1,709 ▲37 | 18.79 ▲0.04 | 366.60 ▲13.50 | 100.03 ▼13.83 |
Media Library /wp-admin/upload.php | 1,850 ▲40 | 5.04 ▲0.03 | 154.34 ▲1.37 | 121.08 ▼3.77 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,886 | 2.51 | 67.05 | 93.31 |
Add New /wp-admin/link-add.php | 2,281 | 2.97 | 88.96 | 109.76 |
All Links /wp-admin/link-manager.php | 1,372 | 2.09 | 58.10 | 69.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ngo-list/ngo-list.php+38
Trying to access array offset on value of type null
- Zombie WordPress options were found after uninstall: 1 option
- widget_links
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/link-manager.php
- > Notice in wp-content/plugins/ngo-list/ngo-list.php+38
Trying to access array offset on value of type null
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ngo-list/ngo-list.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/ngo-list/ngo-list.php:165
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please describe screenshot #0 in ngo-list/assets to your readme.txt
ngo-list/ngo-list.php Passed 13 tests
The main PHP file in "NGO-list" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
This plugin shows a list of the portals member sites, including external pages and event pages. Should be activated on the portal site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin321 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 63 | 226 |
PO File | 1 | 22 | 29 | 95 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ico_extern.png | 1.14KB | 0.39KB | ▼ 66.27% |