68% ngo-list

Code Review | NGO-list

WordPress plugin NGO-list scored 68% from 54 tests.

About plugin

  • Plugin page: ngo-list
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Sep 8, 2016
  • Latest release: Dec 15, 2016
  • Number of updates: 7
  • Update frequency: every 14.0 days
  • Top authors: joje47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 917 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.857.27 ▼18.97
Dashboard /wp-admin1.89 ▼1.177.86 ▼31.26
Posts /wp-admin/edit.php1.89 ▼1.227.36 ▼35.80
Add New Post /wp-admin/post-new.php1.89 ▼3.548.24 ▼646.64
Media Library /wp-admin/upload.php1.89 ▼1.129.56 ▼27.67
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1.898.48
Add New /wp-admin/link-add.php1.898.89
All Links /wp-admin/link-manager.php1.908.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15115.97 ▲0.0810.02 ▲2.0247.77 ▼3.71
Dashboard /wp-admin3,013 ▲795.95 ▲0.04136.27 ▼12.08110.78 ▲6.00
Posts /wp-admin/edit.php2,779 ▲432.70 ▲0.0266.55 ▲0.27100.25 ▲4.40
Add New Post /wp-admin/post-new.php1,709 ▲3718.79 ▲0.04366.60 ▲13.50100.03 ▼13.83
Media Library /wp-admin/upload.php1,850 ▲405.04 ▲0.03154.34 ▲1.37121.08 ▼3.77
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,8862.5167.0593.31
Add New /wp-admin/link-add.php2,2812.9788.96109.76
All Links /wp-admin/link-manager.php1,3722.0958.1069.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP24063226
PO File1222995

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 code0.33
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/ico_extern.png1.14KB0.39KB▼ 66.27%