89% gifty

Code Review | Gifty

WordPress plugin Gifty scored89%from 54 tests.

About plugin

  • Plugin page: gifty
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-6.0.0
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: May 6, 2022
  • Number of updates: 8
  • Update frequency: every 168.1 days
  • Top authors: jeroengifty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Gifty
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.90 ▲0.22
Dashboard /wp-admin3.31 ▼0.0344.11 ▼16.68
Posts /wp-admin/edit.php3.36 ▲0.0138.77 ▼14.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.02 ▼5.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.92 ▲2.66

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Gifty
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12513.24 ▼1.121.63 ▼0.1137.87 ▼4.61
Dashboard /wp-admin2,277 ▲884.86 ▼0.11113.41 ▼2.6841.87 ▼2.97
Posts /wp-admin/edit.php2,167 ▲782.05 ▲0.0636.72 ▼4.1131.93 ▼5.15
Add New Post /wp-admin/post-new.php1,549 ▲1323.20 ▲0.35648.71 ▼4.5457.42 ▼2.08
Media Library /wp-admin/upload.php1,456 ▲684.27 ▲0.0893.40 ▼9.2541.04 ▼4.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

gifty/gifty.php 92% from 13 tests

Analyzing the main PHP file in "Gifty" version 1.0.0
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin291 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44721208
PO File1161764
JavaScript23019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin