90% officeparty-connect

Code Review | Officeparty Connect

WordPress plugin Officeparty Connect scored90%from 54 tests.

About plugin

  • Plugin page: officeparty-connect
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: russellsteadman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Officeparty Connect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.27 ▲5.22
Dashboard /wp-admin3.31 ▲0.0051.60 ▼0.02
Posts /wp-admin/edit.php3.36 ▲0.0053.18 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.31 ▼28.10
Media Library /wp-admin/upload.php3.23 ▲0.0038.89 ▲2.79

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Officeparty Connect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.821.62 ▼0.1244.77 ▼1.59
Dashboard /wp-admin2,203 ▲155.80 ▼0.1098.71 ▼11.5340.53 ▼3.27
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0936.73 ▼4.3534.83 ▼3.54
Add New Post /wp-admin/post-new.php1,514 ▼1923.69 ▲0.43707.72 ▲22.0654.52 ▼6.21
Media Library /wp-admin/upload.php1,388 ▲34.18 ▲0.00105.93 ▼15.2147.02 ▲0.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output 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 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #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)
You can take inspiration from this readme.txt

officeparty-connect/officeparty-connect.php Passed 13 tests

The entry point to "Officeparty Connect" version 1.0.0 is a PHP file that has certain tags in its header comment area
72 characters long description:
Use Officeparty's Connect plugin to integrate with our ecommerce system.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin343 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9118414318
SVG10125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2686.67%
▷ Protected methods00.00%
▷ Private methods413.33%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png15.54KB5.78KB▼ 62.83%
assets/icon-128x128.png6.89KB3.25KB▼ 52.87%