94% gamipress-mycred-importer

Code Review | GamiPress - myCRED Importer

WordPress plugin GamiPress - myCRED Importer scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-mycred-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Feb 8, 2018
  • Latest release: Oct 11, 2021
  • Number of updates: 21
  • Update frequency: every 63.9 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,340 total downloads


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
This plugin's installer ran successfully

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

Server-side resources used by GamiPress - myCRED Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.68 ▲1.43
Dashboard /wp-admin3.08 ▲0.0239.20 ▼3.15
Posts /wp-admin/edit.php3.13 ▲0.0243.74 ▼0.87
Add New Post /wp-admin/post-new.php5.44 ▲0.0085.65 ▼567.13
Media Library /wp-admin/upload.php3.02 ▲0.0231.93 ▼1.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - myCRED Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13515.96 ▲0.498.46 ▲0.7548.42 ▲0.12
Dashboard /wp-admin2,998 ▲615.86 ▼0.10136.76 ▼8.29111.19 ▼6.38
Posts /wp-admin/edit.php2,770 ▲312.70 ▲0.0171.77 ▲3.9196.56 ▲10.81
Add New Post /wp-admin/post-new.php1,515 ▼8918.59 ▼0.22358.28 ▼3.61104.30 ▼6.34
Media Library /wp-admin/upload.php1,839 ▲915.01 ▲0.00145.51 ▼7.61120.60 ▲2.83

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
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 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-mycred-importer/gamipress-mycred-importer.php:204

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

gamipress-mycred-importer/gamipress-mycred-importer.php Passed 13 tests

"GamiPress - myCRED Importer" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Tool to migrate all stored data from myCRED to GamiPress.

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
Good job! No executable or dangerous file extensions detected1,052 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short 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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected