94% gamipress-anspress-integration

Code Review | GamiPress - AnsPress integration

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

About plugin

  • Plugin page: gamipress-anspres...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Sep 13, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 13
  • Update frequency: every 94.5 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,643 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by GamiPress - AnsPress integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0657.84 ▲8.24
Dashboard /wp-admin3.43 ▲0.0348.42 ▲14.32
Posts /wp-admin/edit.php3.67 ▲0.0342.29 ▲1.05
Add New Post /wp-admin/post-new.php6.90 ▼0.06105.16 ▼1,249.25
Media Library /wp-admin/upload.php3.32 ▲0.0237.90 ▲6.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - AnsPress integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲6516.20 ▲0.446.08 ▲0.323.35 ▲0.91
Dashboard /wp-admin2,906 ▲486.16 ▲0.01117.23 ▼25.30206.97 ▲44.97
Posts /wp-admin/edit.php2,713 ▲193.25 ▲0.0168.20 ▼2.33181.82 ▲33.71
Add New Post /wp-admin/post-new.php1,773 ▲11822.02 ▲1.61462.67 ▲46.60161.35 ▼26.87
Media Library /wp-admin/upload.php1,726 ▲285.51 ▼0.01147.19 ▼0.88192.03 ▼44.64

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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-anspress-integration/gamipress-anspress-integration.php:237

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
The official readme.txt is a good inspiration

gamipress-anspress-integration/gamipress-anspress-integration.php Passed 13 tests

This is the main PHP file of "GamiPress - AnsPress integration" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Connect GamiPress with AnsPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin233 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP495188233

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin