78% orghunter

Code Review | OrgHunter

WordPress plugin OrgHunter scored78%from 54 tests.

About plugin

  • Plugin page: orghunter
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Aug 6, 2016
  • Number of updates: 18
  • Update frequency: every 16.2 days
  • Top authors: danillonunes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.38ms] Passed 4 tests

This is a short check of server-side resources used by OrgHunter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.65 ▼15.13
Dashboard /wp-admin3.33 ▲0.0252.97 ▼1.57
Posts /wp-admin/edit.php3.38 ▲0.0247.36 ▼7.51
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.35 ▼1.41
Media Library /wp-admin/upload.php3.25 ▲0.0239.22 ▼5.29
OrgHunter /wp-admin/options-general.php?page=orghunter3.2637.67

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
orghunter_charity_search_results_page_id
theysaidso_admin_options
can_compress_scripts
orghunter_results_count
widget_orghunter_charity_search_widget

Browser metrics Passed 4 tests

OrgHunter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▼0.021.84 ▼0.7750.75 ▼17.13
Dashboard /wp-admin2,193 ▲195.53 ▼0.15108.19 ▲8.6447.73 ▲7.49
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0138.56 ▼2.5536.25 ▲0.51
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲0.18715.90 ▲25.4046.30 ▼15.31
Media Library /wp-admin/upload.php1,407 ▲74.09 ▼0.13113.88 ▲5.5144.51 ▼5.45
OrgHunter /wp-admin/options-general.php?page=orghunter9002.0230.4130.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/orghunter/uninstall.php
    • > /wp-content/plugins/orghunter/options.php
    • > /wp-content/plugins/orghunter/form.php
    • > /wp-content/plugins/orghunter/orghunter-charity-search-results.php
    • > /wp-content/plugins/orghunter/api.php
    • > /wp-content/plugins/orghunter/orghunter.php
    • > /wp-content/plugins/orghunter/widget.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/orghunter/orghunter-charity-search-result-charity.php:3
    • > PHP Notice
      Undefined variable: ein in wp-content/plugins/orghunter/orghunter-charity-search-result-charity.php on line 1
    • > PHP Notice
      Undefined variable: pager in wp-content/plugins/orghunter/orghunter-charity-search-results.php on line 6
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/orghunter/orghunter-charity-search-result-charity.php on line 3
    • > PHP Notice
      Undefined variable: results in wp-content/plugins/orghunter/orghunter-charity-search-results.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% 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
5 plugin tags: charity, donation, orghunter, search, third-party

orghunter/orghunter.php 92% from 13 tests

Analyzing the main PHP file in "OrgHunter" version 1.1.1
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected587 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP811972572
CSS10015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected