90% gigago-partner

Code Review | Gigago Partner

WordPress plugin Gigago Partner scored90%from 54 tests.

About plugin

  • Plugin page: gigago-partner
  • Plugin version: 1.0.22
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2023
  • Latest release: Aug 3, 2023
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: hiennd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.23ms] Passed 4 tests

Analyzing server-side resources used by Gigago Partner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.70 ▼2.57
Dashboard /wp-admin3.45 ▲0.1547.02 ▼1.39
Posts /wp-admin/edit.php3.56 ▲0.2145.96 ▼1.57
Add New Post /wp-admin/post-new.php6.04 ▲0.1689.70 ▼11.38
Media Library /wp-admin/upload.php3.37 ▲0.1533.34 ▲2.39
Email Templates /wp-admin/admin.php?page=gigago-partner-email3.3432.07
Gigago Partner /wp-admin/admin.php?page=gigago-partner3.3431.92

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gigago Partner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.65 ▼0.971.66 ▼0.0141.59 ▲3.14
Dashboard /wp-admin2,262 ▲704.88 ▼0.06107.22 ▼0.6941.60 ▼0.61
Posts /wp-admin/edit.php2,145 ▲532.06 ▲0.0839.62 ▼2.2536.75 ▼1.91
Add New Post /wp-admin/post-new.php1,564 ▲4518.52 ▼4.51605.57 ▼50.0055.41 ▼7.43
Media Library /wp-admin/upload.php1,442 ▲544.25 ▲0.0997.85 ▼22.3943.04 ▼5.11
Email Templates /wp-admin/admin.php?page=gigago-partner-email8682.0628.0625.85
Gigago Partner /wp-admin/admin.php?page=gigago-partner9122.0423.4527.99

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: esim, gigago, buy esim, gigago partner

gigago-partner/gigago-partner.php Passed 13 tests

This is the main PHP file of "Gigago Partner" version 1.0.22, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Help Gigago Partners’ customers buy eSIMs easily and quickly.

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
Everything looks great! No dangerous files found in this plugin965 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15168169876
HTML213065
CSS10018
SVG1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.30
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants8
▷ Global constants8100.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