68% givexpert

Code Review | GiveXpert

WordPress plugin GiveXpert scored68%from 54 tests.

About plugin

  • Plugin page: givexpert
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2022
  • Latest release: Sep 21, 2022
  • Number of updates: 8
  • Update frequency: every 15.8 days
  • Top authors: givexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,859 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by GiveXpert
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0828.42 ▼12.89
Dashboard /wp-admin3.44 ▲0.1345.03 ▼6.33
Posts /wp-admin/edit.php3.55 ▲0.2048.00 ▲4.08
Add New Post /wp-admin/post-new.php5.33 ▼0.5569.66 ▼32.19
Media Library /wp-admin/upload.php3.36 ▲0.1334.52 ▲2.40
Shortcode /wp-admin/admin.php?page=shortcode3.3331.85
Configuration /wp-admin/admin.php?page=parametre3.3332.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: 2 new tables, 7 new options
New tables
wp_client_data
wp_progressbar_data
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
jal_db_version
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for GiveXpert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.39 ▼0.9610.34 ▲8.5558.43 ▲15.30
Dashboard /wp-admin2,219 ▲425.51 ▼0.1579.29 ▼10.3441.51 ▲5.82
Posts /wp-admin/edit.php2,127 ▲272.02 ▼0.0036.37 ▼6.4233.12 ▼4.77
Add New Post /wp-admin/post-new.php6,394 ▲4,85927.03 ▲8.51856.92 ▲220.2461.97 ▼3.06
Media Library /wp-admin/upload.php1,430 ▲334.20 ▲0.0494.31 ▼9.9844.81 ▲0.38
Shortcode /wp-admin/admin.php?page=shortcode1,3722.0027.3890.58
Configuration /wp-admin/admin.php?page=parametre1,2592.0024.5851.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_client_data
    • wp_progressbar_data
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • jal_db_version
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/givexpert/parameter.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/givexpert/shortcode.php:144
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/givexpert/cookies-management.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/givexpert/parameter.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-Regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-SemiBold.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-SemiBold.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=parametre
    • > Network (severe)
    wp-content/plugins/givexpert/fonts/Assistant/Assistant-SemiBold.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: givexpert, fundraising

givexpert/block.php 92% from 13 tests

"GiveXpert" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("givexpert.php" instead of "block.php")

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 detected24,952 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS33,85230820,242
JavaScript6210233,418
PHP619232818
JSON100472
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo_GiveXpert.png4.75KB2.73KB▼ 42.61%