94% gamipress-slicewp-integration

Code Review | GamiPress - SliceWP integration

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

About plugin

  • Plugin page: gamipress-slicewp...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Oct 8, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 3
  • Update frequency: every 36.4 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 148 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by GamiPress - SliceWP integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0653.39 ▲1.06
Dashboard /wp-admin3.43 ▲0.0334.97 ▲2.49
Posts /wp-admin/edit.php3.66 ▲0.0241.27 ▲5.32
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.40 ▼1,164.05
Media Library /wp-admin/upload.php3.32 ▲0.0222.41 ▼2.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - SliceWP integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲6915.89 ▼0.126.33 ▲0.302.32 ▼0.45
Dashboard /wp-admin2,923 ▲626.18 ▲0.05112.41 ▼18.89153.13 ▼10.43
Posts /wp-admin/edit.php2,713 ▲223.24 ▲0.0166.32 ▲4.64141.53 ▲1.36
Add New Post /wp-admin/post-new.php1,709 ▼8521.11 ▼0.21394.05 ▼56.77153.54 ▼12.21
Media Library /wp-admin/upload.php1,723 ▲255.58 ▲0.07143.30 ▼1.56185.80 ▼2.08

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× 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/gamipress-slicewp-integration/gamipress-slicewp.php:221

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The principal PHP file in "GamiPress - SliceWP integration" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-slicewp-integration.php" instead of "gamipress-slicewp.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 plugin161 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP472191161

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin