62% collaboration

Code Review | Collaboration

WordPress plugin Collaboration scored62%from 54 tests.

About plugin

  • Plugin page: collaboration
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Feb 22, 2014
  • Number of updates: 6
  • Update frequency: every 23.7 days
  • Top authors: maxaud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,188 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.18MB] [CPU: ▼37.54ms] Passed 4 tests

An overview of server-side resources used by Collaboration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.6712.95 ▼26.66
Dashboard /wp-admin2.83 ▼0.4719.07 ▼28.48
Posts /wp-admin/edit.php2.83 ▼0.5215.96 ▼28.70
Add New Post /wp-admin/post-new.php2.83 ▼3.0619.18 ▼66.31
Media Library /wp-admin/upload.php2.83 ▼0.4015.55 ▼19.00
Collaborate /wp-admin/options-general.php?page=togetherjs2.8315.41

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

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

Browser metrics Passed 4 tests

Collaboration: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.65 ▼0.935.95 ▲4.2041.60 ▲1.44
Dashboard /wp-admin2,226 ▲405.90 ▲0.94111.07 ▼10.3143.66 ▲0.25
Posts /wp-admin/edit.php2,112 ▲232.05 ▲0.0440.39 ▲0.3535.68 ▼0.83
Add New Post /wp-admin/post-new.php1,527 ▼617.41 ▼5.97602.28 ▼16.4050.90 ▼5.33
Media Library /wp-admin/upload.php1,408 ▲204.29 ▲0.1196.10 ▼8.0740.11 ▼5.88
Collaborate /wp-admin/options-general.php?page=togetherjs1,0441.9931.1029.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/collaboration/togetherjs.php+183
    Undefined index: id
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=togetherjs
    • > Notice in wp-content/plugins/collaboration/togetherjs.php+342
    Undefined index: id
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=togetherjs
    • > Notice in wp-content/plugins/collaboration/togetherjs.php+343
    Undefined index: desc

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/collaboration/togetherjs.php:608

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=togetherjs
    • > Console-api (warning) in unknown
    https://togetherjs.com/togetherjs-min.js?ver=1.0 654:12 "Listening for alt-T alt-T to start TogetherJS"

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: share, chat, multi-author, collaboration, collaborate...

collaboration/togetherjs.php 92% from 13 tests

"Collaboration" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("collaboration.php" instead of "togetherjs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected383 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213694383

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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
No PNG files were detected