10% geoperks-for-geodirectory

Code Review | GeoPerks - special sauce for GeoDirectory

WordPress plugin GeoPerks - special sauce for GeoDirectory scored10%from 54 tests.

About plugin

  • Plugin page: geoperks-for-geod...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2019
  • Latest release: Jun 20, 2019
  • Number of updates: 2
  • Update frequency: every 15.0 days
  • Top authors: alexrollin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /720 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/geodirectory/geodirectory.php): failed to open stream: No such file or directory

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

A check of server-side resources used by GeoPerks - special sauce for GeoDirectory
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.09 ▼0.92
Dashboard /wp-admin3.31 ▲0.0050.61 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0053.64 ▲0.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.17 ▼8.93
Media Library /wp-admin/upload.php3.23 ▲0.0038.45 ▲1.83

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

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

Browser metrics Passed 4 tests

GeoPerks - special sauce for GeoDirectory: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8913.62 ▼0.705.09 ▲3.4737.25 ▼2.79
Dashboard /wp-admin2,224 ▲215.88 ▲0.99100.57 ▼17.3843.01 ▼4.21
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0040.68 ▲3.1237.98 ▲3.79
Add New Post /wp-admin/post-new.php1,545 ▲1423.01 ▼0.29625.77 ▼27.2552.92 ▲1.34
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0198.44 ▼11.8442.22 ▼3.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/geoperks-for-geodirectory/includes/insert-shortcode-js.php
    • > /wp-content/plugins/geoperks-for-geodirectory/perks/feature-2/includes/insert-shortcode-js.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geoperks-for-geodirectory/perks/feature-2/perk-run.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geoperks-for-geodirectory/geoperks-for-geodirectory.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/geoperks-for-geodirectory/admin/manage_perks.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/geoperks-for-geodirectory/perks/feature-1/perk-init.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: beaver builder, listings, powerpack for beaver builder, directory plugin, business directory

geoperks-for-geodirectory/geoperks-for-geodirectory.php 92% from 13 tests

The main PHP script in "GeoPerks - special sauce for GeoDirectory" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin419 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP611114355
JavaScript222360
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods21100.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin