90% partybook-widget

Code Review | Partybook Widget

WordPress plugin Partybook Widget scored90%from 54 tests.

About plugin

  • Plugin page: partybook-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.5
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Apr 6, 2018
  • Number of updates: 5
  • Update frequency: every 138.8 days
  • Top authors: rennkeith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Partybook Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.23 ▼1.23
Dashboard /wp-admin3.33 ▲0.0354.42 ▼1.99
Posts /wp-admin/edit.php3.38 ▲0.0248.45 ▼7.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.43 ▼6.64
Media Library /wp-admin/upload.php3.26 ▲0.0240.05 ▲2.57

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_partybook_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Partybook Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.44 ▼1.229.72 ▲7.9442.31 ▼2.86
Dashboard /wp-admin2,195 ▲155.65 ▼0.0297.17 ▲4.8841.64 ▼1.69
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0136.43 ▼3.5433.07 ▼4.85
Add New Post /wp-admin/post-new.php1,545 ▼023.28 ▲0.17654.51 ▲5.9052.13 ▼4.04
Media Library /wp-admin/upload.php1,397 ▼04.22 ▼0.0096.34 ▼8.8542.55 ▼4.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_partybook_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

partybook-widget/partybook-widget.php Passed 13 tests

The entry point to "Partybook Widget" version 1.1 is a PHP file that has certain tags in its header comment area
87 characters long description:
A plugin to display a booking form using GET method, through a widget named, PartyBook.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,284 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12841371,047
CSS1509161
PHP1151776

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.09MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screen Shot 1.png38.62KB7.28KB▼ 81.15%
Screen Shot 2.png37.51KB6.92KB▼ 81.55%
assets/partycache_logo_tm_80.png20.67KB2.23KB▼ 89.20%