72% gig-promotion-for-fiverr

Code Review | GigFi - Gig promotion for Fiverr

WordPress plugin GigFi - Gig promotion for Fiverr scored72%from 54 tests.

About plugin

  • Plugin page: gig-promotion-for...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Aug 3, 2022
  • Number of updates: 13
  • Update frequency: every 63.6 days
  • Top authors: apsaraaruna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,316 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.09ms] Passed 4 tests

Server-side resources used by GigFi - Gig promotion for Fiverr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.70 ▼2.72
Dashboard /wp-admin3.34 ▼0.0149.78 ▼10.03
Posts /wp-admin/edit.php3.39 ▲0.0348.50 ▼7.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.37 ▼12.13
Media Library /wp-admin/upload.php3.26 ▲0.0340.74 ▲3.44
Five R Gig Options /wp-admin/plugins.php?page=five_r_gig3.2335.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
five_r_gig_display_options
can_compress_scripts
theysaidso_admin_options
widget_gig_promotion_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for GigFi - Gig promotion for Fiverr
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.43 ▼0.938.74 ▲6.9939.14 ▼3.24
Dashboard /wp-admin2,203 ▲295.64 ▲0.0798.17 ▲11.2944.37 ▼0.39
Posts /wp-admin/edit.php2,108 ▲112.03 ▲0.0139.97 ▲2.0638.54 ▲0.74
Add New Post /wp-admin/post-new.php1,533 ▲523.13 ▲0.16651.21 ▼25.3054.31 ▲4.53
Media Library /wp-admin/upload.php1,408 ▲144.32 ▲0.12101.70 ▼8.8746.17 ▲0.58
Five R Gig Options /wp-admin/plugins.php?page=five_r_gig8552.0427.3529.44

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_gig_promotion_widget
    • db_upgraded
    • theysaidso_admin_options
    • five_r_gig_display_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gig-promotion-for-fiverr/admin/partials/five-r-gig-admin-display.php
    • > /wp-content/plugins/gig-promotion-for-fiverr/public/partials/five-r-gig-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gig-promotion-for-fiverr/admin/class-five-r-gig-widget.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/plugins.php?page=five_r_gig
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at media_upload (/wp-content/plugins/gig-promotion-for-fiverr/admin/js/five-r-gig-admin.js?ver=1.0.0:34:38)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gig-promotion-for-fiverr/admin/js/five-r-gig-admin.js?ver=1.0.0:49:4)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/plugins.php?page=five_r_gig
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'editor')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: fiverr, profile, promotion, social, freelance...

gig-promotion-for-fiverr/gig-promotion-for-fiver.php 85% from 13 tests

"GigFi - Gig promotion for Fiverr" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gig-promotion-for-fiverr.php" instead of "gig-promotion-for-fiver.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin783 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14298730695
PO File1222560
JavaScript235426
CSS2041
Markdown1101

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods4989.09%
▷ Protected methods00.00%
▷ Private methods610.91%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/style-1.png19.29KB20.07KB0.00%