84% gamipress-transfers-notes

Code Review | GamiPress - Transfers Notes

WordPress plugin GamiPress - Transfers Notes scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-transfe...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Sep 4, 2023
  • Number of updates: 16
  • Update frequency: every 89.4 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests

Analyzing server-side resources used by GamiPress - Transfers Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼6.59
Dashboard /wp-admin3.31 ▲0.0148.66 ▼4.21
Posts /wp-admin/edit.php3.36 ▲0.0155.36 ▲1.82
Add New Post /wp-admin/post-new.php5.89 ▲0.01103.97 ▲2.12
Media Library /wp-admin/upload.php3.23 ▲0.0137.77 ▼0.65

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

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

Browser metrics Passed 4 tests

GamiPress - Transfers Notes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.38 ▲0.271.70 ▼0.2943.50 ▼0.87
Dashboard /wp-admin2,215 ▲385.56 ▼0.0490.70 ▼4.0042.65 ▼1.09
Posts /wp-admin/edit.php2,121 ▲182.02 ▲0.0642.36 ▼0.9738.37 ▲0.22
Add New Post /wp-admin/post-new.php1,560 ▲2923.45 ▲2.37680.74 ▲3.8263.42 ▲9.64
Media Library /wp-admin/upload.php1,414 ▲144.31 ▲0.10105.29 ▼28.9545.43 ▼6.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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-transfers-notes/gamipress-transfers-notes.php:218

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

gamipress-transfers-notes/gamipress-transfers-notes.php Passed 13 tests

Analyzing the main PHP file in "GamiPress - Transfers Notes" version 1.0.0
90 characters long description:
Add a textarea on Transfers add-on forms where users can leave notes about their transfer.

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 plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP490245187

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin