94% gamipress-divi-integration

Code Review | GamiPress - Divi integration

WordPress plugin GamiPress - Divi integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-divi-in...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 4, 2022
  • Latest release: Feb 4, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 169 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼302.07ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Divi integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0653.98 ▲3.92
Dashboard /wp-admin3.43 ▲0.0333.31 ▲0.33
Posts /wp-admin/edit.php3.66 ▲0.0236.67 ▲1.61
Add New Post /wp-admin/post-new.php6.91 ▼0.0698.45 ▼1,204.07
Media Library /wp-admin/upload.php3.32 ▲0.0224.30 ▼6.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Divi integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲6916.14 ▲0.526.01 ▼0.372.45 ▲0.04
Dashboard /wp-admin2,920 ▲596.15 ▼0.07118.19 ▼9.58155.01 ▼4.33
Posts /wp-admin/edit.php2,719 ▲253.24 ▲0.0163.73 ▲1.57142.37 ▲2.11
Add New Post /wp-admin/post-new.php1,767 ▲9521.54 ▲0.64455.29 ▲22.53154.87 ▼4.23
Media Library /wp-admin/upload.php1,726 ▲315.55 ▼0.01149.63 ▲4.83199.09 ▲1.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-divi-integration/gamipress-divi.php:216

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

gamipress-divi-integration/gamipress-divi.php 92% from 13 tests

This is the main PHP file of "GamiPress - Divi integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gamipress-divi-integration.php" instead of "gamipress-divi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin426 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7153368369
JavaScript215457

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin