78% geo-deals

Code Review | Geo Deals

WordPress plugin Geo Deals scored78%from 54 tests.

About plugin

  • Plugin page: geo-deals
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 12, 2023
  • Latest release: Aug 3, 2023
  • Number of updates: 5
  • Update frequency: every 40.8 days
  • Top authors: hikeorders30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.29ms] Passed 4 tests

An overview of server-side resources used by Geo Deals
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.29 ▼2.33
Dashboard /wp-admin3.37 ▲0.0649.83 ▼1.09
Posts /wp-admin/edit.php3.48 ▲0.1246.35 ▼6.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.70 ▼15.31
Media Library /wp-admin/upload.php3.29 ▲0.0642.64 ▲3.49
Geo Deals /wp-admin/options-general.php?page=geodeals3.2634.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Geo Deals
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.26 ▼0.101.94 ▼0.0244.74 ▼3.01
Dashboard /wp-admin2,199 ▲195.64 ▼0.0195.23 ▲5.3143.09 ▲4.66
Posts /wp-admin/edit.php2,101 ▼21.98 ▼0.0234.87 ▼7.3834.78 ▲1.77
Add New Post /wp-admin/post-new.php1,531 ▲323.41 ▲0.21660.74 ▼6.0151.29 ▼15.41
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0998.74 ▼22.5043.59 ▼5.24
Geo Deals /wp-admin/options-general.php?page=geodeals9371.9924.2531.98

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/geo-deals/public/partials/geodeals-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/geo-deals/admin/partials/plugin-geodeals-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: bbpress, purchase power parity, offers widget, ppp deals, discount widget...

geo-deals/geodeals.php 77% from 13 tests

Analyzing the main PHP file in "Geo Deals" version 1.0.0
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("geo-deals.php" instead of "geodeals.php")

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
There were no executable files found in this plugin322 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13220585306
CSS2289
JavaScript24546
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin