72% gdreseller

Code Review | GDReseller

WordPress plugin GDReseller scored72%from 54 tests.

About plugin

  • Plugin page: gdreseller
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.5
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Apr 17, 2016
  • Number of updates: 41
  • Update frequency: every 9.0 days
  • Top authors: tziady (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /3,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.92ms] Passed 4 tests

This is a short check of server-side resources used by GDReseller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.63 ▲5.47
Dashboard /wp-admin3.36 ▲0.0548.86 ▼4.18
Posts /wp-admin/edit.php3.41 ▲0.0555.53 ▲0.71
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.37 ▼22.22
Media Library /wp-admin/upload.php3.28 ▲0.0538.15 ▲2.03
Add New /wp-admin/post-new.php?post_type=gdr_form3.3749.73
GD Options /wp-admin/options-general.php?page=gdr_options3.2533.90
All GD Products /wp-admin/edit.php?post_type=gdr_form3.3239.04
Reseller Groups /wp-admin/edit-tags.php?taxonomy=reseller_group&post_type=gdr_form3.2734.18

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
gdr_activation_date
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_gdr_domain_form_widget
widget_theysaidso_widget
db_upgraded
footer_text

Browser metrics Passed 4 tests

Checking browser requirements for GDReseller
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.35 ▲0.001.62 ▼0.0339.69 ▼5.37
Dashboard /wp-admin2,237 ▲575.51 ▼0.2185.79 ▼3.6040.61 ▼7.03
Posts /wp-admin/edit.php2,146 ▲492.00 ▲0.0139.27 ▲0.6036.66 ▼8.52
Add New Post /wp-admin/post-new.php1,559 ▲3323.01 ▼0.09663.78 ▲5.1249.66 ▼7.41
Media Library /wp-admin/upload.php1,439 ▲454.31 ▲0.1297.24 ▼4.8343.65 ▲1.23
Add New /wp-admin/post-new.php?post_type=gdr_form2,4667.74197.89124.06
GD Options /wp-admin/options-general.php?page=gdr_options8772.0124.2124.61
All GD Products /wp-admin/edit.php?post_type=gdr_form1,1481.9532.3132.41
Reseller Groups /wp-admin/edit-tags.php?taxonomy=reseller_group&post_type=gdr_form1,3212.1326.9230.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 9 options in the database
    • db_upgraded
    • footer_text
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_gdr_domain_form_widget
    • gdr_activation_date
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=gdr_form
    • > Warning in wp-content/plugins/gdreseller/gdreseller.php+167
    count(): Parameter must be an array or an object that implements Countable

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gdreseller/gdreseller.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gdreseller/gdr_tax.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=reseller_group&post_type=gdr_form
    • > Network (severe)
    wp-content/plugins/gdreseller/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #19 (Make sure the reseller ID is yours and the Form URL is "http://YourReseller.Website.com//domains/search.aspx?checkAvail=1&prog_id=") image not found
  • Screenshots: Please describe screenshot #7 in gdreseller/assets to your readme.txt
The official readme.txt is a good inspiration

gdreseller/gdreseller.php Passed 13 tests

The entry point to "GDReseller" version 1.6 is a PHP file that has certain tags in its header comment area
103 characters long description:
Allow Godaddy resellers to redirect product sales and perform domain name search through their reseller

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected553 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28268539
JavaScript11114

PHP code Passed 2 tests

Analyzing 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 complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin