89% screenshare-with-screenleap-integration

Code Review | Screenshare with Screenleap Integration

WordPress plugin Screenshare with Screenleap Integration scored89%from 54 tests.

About plugin

  • Plugin page: screenshare-with-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 2, 2021
  • Latest release: May 2, 2021
  • Number of updates: 3
  • Update frequency: every 13.3 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.82ms] Passed 4 tests

Server-side resources used by Screenshare with Screenleap Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.81 ▼2.83
Dashboard /wp-admin3.40 ▲0.0945.75 ▼2.11
Posts /wp-admin/edit.php3.51 ▲0.1550.33 ▲1.47
Add New Post /wp-admin/post-new.php6.01 ▲0.1280.34 ▲0.20
Media Library /wp-admin/upload.php3.32 ▲0.0937.36 ▲4.44
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=gpls_sli_screenleap3.3234.02
Add New /wp-admin/post-new.php?post_type=gpls_sli_screenleap3.5960.63
Screenleap Meetings /wp-admin/edit.php?post_type=gpls_sli_screenleap3.3736.32
Settings /wp-admin/edit.php?post_type=gpls_sli_screenleap&page=gpls-sli-wp-screenleap-integration3.3431.58
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gpls_sli_screenleap3.3137.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
category_children
can_compress_scripts
widget_recent-comments
gpls_core_plugins_main_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Screenshare with Screenleap Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.28 ▼0.301.62 ▼0.0641.07 ▼4.68
Dashboard /wp-admin2,239 ▲625.56 ▼0.0984.04 ▼13.9235.12 ▼9.01
Posts /wp-admin/edit.php2,141 ▲442.02 ▲0.0138.68 ▲3.5735.01 ▼0.88
Add New Post /wp-admin/post-new.php1,562 ▲3423.00 ▼0.14648.55 ▲13.3255.32 ▲3.53
Media Library /wp-admin/upload.php1,447 ▲474.27 ▲0.0695.40 ▼0.6143.77 ▲4.02
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=gpls_sli_screenleap1,3632.1728.4228.25
Add New /wp-admin/post-new.php?post_type=gpls_sli_screenleap6,4027.66206.92181.75
Screenleap Meetings /wp-admin/edit.php?post_type=gpls_sli_screenleap1,2051.9734.0428.68
Settings /wp-admin/edit.php?post_type=gpls_sli_screenleap&page=gpls-sli-wp-screenleap-integration9111.8524.2122.95
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gpls_sli_screenleap1,4962.1828.0831.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • category_children
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: You can look at the official readme.txt

screenshare-with-screenleap-integration/gpls-sli-wp-screenleap-integration.php 85% from 13 tests

The entry point to "Screenshare with Screenleap Integration" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("screenshare-with-screenleap-integration.php" instead of "gpls-sli-wp-screenleap-integration.php")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")

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
Success! There were no dangerous files found in this plugin4,059 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP253841,2593,084
JavaScript8120278735
Sass3390234
CSS6066

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.33
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods141
▷ Static methods117.80%
▷ Public methods13495.04%
▷ Protected methods00.00%
▷ Private methods74.96%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants2
▷ Global constants2100.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
34 PNG files occupy 0.40MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/mac_native_chrome_custom_protocol_handler.png78.81KB25.38KB▼ 67.80%
assets/src/images/win_native_chrome_custom_protocol_handler_screenshare.png10.22KB10.09KB▼ 1.24%
assets/src/images/win_native_firefox_custom_protocol_handler.png15.05KB7.84KB▼ 47.94%
assets/src/images/mac_api_native_finder_window.png5.86KB4.90KB▼ 16.38%
assets/dist/images/sc.png3.41KB2.93KB▼ 14.08%