77% wparty

Code Review | WParty

WordPress plugin WParty scored77%from 54 tests.

About plugin

  • Plugin page: wparty
  • Plugin version: 1.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Jan 8, 2014
  • Number of updates: 59
  • Update frequency: every 6.1 days
  • Top authors: applh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,468 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.54ms] Passed 4 tests

A check of server-side resources used by WParty
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.65 ▼2.83
Dashboard /wp-admin3.35 ▲0.0545.85 ▼4.95
Posts /wp-admin/edit.php3.40 ▲0.0549.34 ▲3.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.77 ▼10.34
Media Library /wp-admin/upload.php3.27 ▲0.0537.11 ▲5.21

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WParty
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3013.62 ▼0.751.64 ▼0.5742.63 ▼2.09
Dashboard /wp-admin2,207 ▲365.91 ▲0.0599.97 ▼16.1239.60 ▼7.40
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.84 ▲5.8837.18 ▲4.51
Add New Post /wp-admin/post-new.php1,517 ▼1917.67 ▼5.58690.69 ▲15.8764.46 ▲18.33
Media Library /wp-admin/upload.php1,395 ▲134.17 ▼0.0395.93 ▼2.9444.00 ▲1.42
WParty /wp-admin/wparty.php260.440.0816.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wparty/wparty-theme.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wparty/wparty-admin.php:162
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wparty/wparty-theme.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/wparty.php
    • > Network (severe)
    wp-admin/wparty.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wparty === )
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt might help

wparty/wparty.php 92% from 13 tests

The principal PHP file in "WParty" v. 1.8.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

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
No dangerous file extensions were detected10,272 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS3982476,181
PHP178688943,691
Markdown11550356
JavaScript321644

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity82.50
▷ Minimum class complexity63.00
▷ Maximum class complexity102.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods94
▷ Static methods11.06%
▷ Public methods44.26%
▷ Protected methods9095.74%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin