10% fundify-geolocated-campaigns

Code Review | Fundify Geolocated Campaigns

WordPress plugin Fundify Geolocated Campaigns scored10%from 54 tests.

About plugin

  • Plugin page: fundify-geolocate...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2014
  • Latest release: Apr 13, 2014
  • Number of updates: 9
  • Update frequency: every 4.0 days
  • Top authors: bobz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,511 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/fundify-geolocated-campaigns/inc/campaign-edit.php+143
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.22ms] Passed 4 tests

Analyzing server-side resources used by Fundify Geolocated Campaigns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.41 ▲2.21
Dashboard /wp-admin3.31 ▲0.0044.68 ▼4.88
Posts /wp-admin/edit.php3.36 ▲0.0044.25 ▼1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.00 ▼7.13
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▲0.14

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Fundify Geolocated Campaigns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.081.64 ▼0.2549.05 ▲1.90
Dashboard /wp-admin2,206 ▲184.84 ▼1.07100.47 ▼12.0642.83 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1338.20 ▲1.6330.38 ▼7.31
Add New Post /wp-admin/post-new.php1,535 ▲223.28 ▼0.04606.22 ▼44.1753.01 ▼0.90
Media Library /wp-admin/upload.php1,379 ▼94.23 ▲0.0495.93 ▼0.4241.70 ▼1.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fundify-geolocated-campaigns/inc/campaign-edit.php on line 143

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
The official readme.txt might help

fundify-geolocated-campaigns/fundify-geolocated-campaigns.php 92% from 13 tests

Analyzing the main PHP file in "Fundify Geolocated Campaigns" version 0.2
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,135 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3340485984
PHP8254350886
PO File16565192
Sass210063
Ruby16128
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin