84% thingstogetme-gift-list-maker

Code Review | ThingsToGetMe Gift List Maker

WordPress plugin ThingsToGetMe Gift List Maker scored84%from 54 tests.

About plugin

  • Plugin page: thingstogetme-gif...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Jan 21, 2023
  • Number of updates: 8
  • Update frequency: every 195.8 days
  • Top authors: thingstogetme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by ThingsToGetMe Gift List Maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0138.74 ▼5.15
Dashboard /wp-admin3.35 ▲0.0149.63 ▼1.80
Posts /wp-admin/edit.php3.40 ▲0.0150.68 ▼2.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0189.38 ▼9.57
Media Library /wp-admin/upload.php3.28 ▲0.0139.25 ▼0.02

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

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

Browser metrics Passed 4 tests

ThingsToGetMe Gift List Maker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.282.09 ▲0.3139.49 ▼1.76
Dashboard /wp-admin2,195 ▲155.62 ▲0.1083.60 ▼13.1438.75 ▲1.57
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0538.58 ▲1.7036.76 ▼1.73
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▼0.17644.43 ▼52.0350.67 ▼0.07
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.0596.92 ▼23.8045.13 ▼3.99

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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_shortcode() in wp-content/plugins/thingstogetme-gift-list-maker/thingstogetme-gift-list-maker.php:80

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === thingstogetme-gift-list-maker === )
The official readme.txt might help

thingstogetme-gift-list-maker/thingstogetme-gift-list-maker.php Passed 13 tests

The primary PHP file in "ThingsToGetMe Gift List Maker" version 1.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
Add the ThingsToGetMe plugin to your WordPress website

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
Success! There were no dangerous files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115758

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected