62% qupra-network-finder

Code Review | Qupra Network Finder

WordPress plugin Qupra Network Finder scored62%from 54 tests.

About plugin

  • Plugin page: qupra-network-finder
  • Plugin version: 3.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2021
  • Latest release: Jan 28, 2023
  • Number of updates: 17
  • Update frequency: every 33.1 days
  • Top authors: qupranl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼13.96ms] Passed 4 tests

A check of server-side resources used by Qupra Network Finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.05 ▲0.13
Dashboard /wp-admin3.33 ▲0.0247.85 ▼8.68
Posts /wp-admin/edit.php3.44 ▲0.0853.79 ▲2.28
Add New Post /wp-admin/post-new.php3.21 ▼2.6845.28 ▼49.55
Media Library /wp-admin/upload.php3.25 ▲0.0241.06 ▲4.09
inzendingen /wp-admin/admin.php?page=qupra_tools_listing3.2229.99
Settings /wp-admin/admin.php?page=qupra_tools3.2036.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: 1 new table, 7 new options
New tables
wp_qupra_request_quote_records
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
nextpertise_tool_data_api_verified
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Qupra Network Finder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17413.47 ▼1.1011.19 ▲9.3840.77 ▼6.59
Dashboard /wp-admin2,225 ▲515.62 ▼0.0593.37 ▼4.7243.96 ▼0.37
Posts /wp-admin/edit.php2,127 ▲272.02 ▼0.0140.12 ▲2.0438.15 ▲1.06
Add New Post /wp-admin/post-new.php1,549 ▲2321.15 ▼1.84635.90 ▼32.9652.46 ▼12.89
Media Library /wp-admin/upload.php1,430 ▲304.20 ▲0.0097.75 ▼10.6244.90 ▼1.05
inzendingen /wp-admin/admin.php?page=qupra_tools_listing1,0002.1624.6929.09
Settings /wp-admin/admin.php?page=qupra_tools1,0252.0225.6230.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_qupra_request_quote_records
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • nextpertise_tool_data_api_verified
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/qupra-network-finder/public/partials/search-result-template-v3.php
    • > /wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php
    • > /wp-content/plugins/qupra-network-finder/admin/partials/nextpertise-network-finder-admin-display.php
    • > /wp-content/plugins/qupra-network-finder/public/partials/nextpertise-network-finder-public-display.php
  • 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: button_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php on line 92
    • > PHP Notice
      Undefined variable: font_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php on line 20
    • > PHP Notice
      Undefined variable: button_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template-v3.php on line 20
    • > PHP Notice
      Undefined variable: container_border_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php on line 3
    • > PHP Notice
      Undefined variable: displayPrice in wp-content/plugins/qupra-network-finder/public/partials/search-result-template-v3.php on line 64
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qupra-network-finder/admin/class-admin-settings.php on line 318
    • > PHP Notice
      Undefined variable: container_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template-v3.php on line 3
    • > PHP Warning
      Use of undefined constant MRA_N_PLUGIN_PATH - assumed 'MRA_N_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php on line 52
    • > PHP Notice
      Undefined variable: button_border_color in wp-content/plugins/qupra-network-finder/public/partials/search-result-template-v3.php on line 20
    • > PHP Warning
      Use of undefined constant MRA_N_PLUGIN_PATH - assumed 'MRA_N_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qupra-network-finder/public/partials/search-result-template.php on line 53

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=qupra_tools
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=qupra_tools 182 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=qupra_tools
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=qupra_tools 191 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=qupra_tools
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=qupra_tools 200 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=qupra_tools
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=qupra_tools 209 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=qupra_tools
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=qupra_tools 218 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: network finder

qupra-network-finder/qupra-network-finder.php 92% from 13 tests

The main PHP file in "Qupra Network Finder" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,907 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP172186201,205
CSS24829373
JavaScript521109313
SVG20216

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.91
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3683.72%
▷ Protected methods00.00%
▷ Private methods716.28%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png56.99KB23.30KB▼ 59.11%
assets/screenshot-2.png50.45KB21.73KB▼ 56.93%
assets/icon-256x256.png38.04KB12.73KB▼ 66.53%
assets/icon-128x128.png12.68KB5.19KB▼ 59.08%