79% skautis-integration

Code Review | skautIS integrace

WordPress plugin skautIS integrace scored79%from 54 tests.

About plugin

  • Plugin page: skautis-integration
  • Plugin version: 1.1.28
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Apr 3, 2023
  • Number of updates: 57
  • Update frequency: every 36.9 days
  • Top authors: skaut (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.56MB] [CPU: ▼0.90ms] Passed 4 tests

A check of server-side resources used by skautIS integrace
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.00 ▲1.5451.64 ▲3.39
Dashboard /wp-admin4.88 ▲1.5358.76 ▼5.88
Posts /wp-admin/edit.php4.99 ▲1.6357.62 ▲1.03
Add New Post /wp-admin/post-new.php7.48 ▲1.59103.17 ▼2.14
Media Library /wp-admin/upload.php4.80 ▲1.5748.34 ▲10.38
Přihlašování /wp-admin/admin.php?page=skautis-integration_login4.7739.16
Moduly /wp-admin/admin.php?page=skautis-integration_modules4.7739.89
Správa pravidel /wp-admin/edit.php?post_type=skautis_rules4.8442.47
Správa uživatelů /wp-admin/admin.php?page=skautis-integration_usersManagement4.7741.26
Obecné /wp-admin/admin.php?page=skautis-integration4.7739.29

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for skautIS integrace
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.34 ▼1.021.92 ▲0.0543.26 ▼2.19
Dashboard /wp-admin2,254 ▲685.08 ▲0.07106.59 ▼9.5383.19 ▲37.39
Posts /wp-admin/edit.php2,152 ▲602.29 ▲0.2633.03 ▼19.1034.21 ▼4.72
Add New Post /wp-admin/post-new.php1,577 ▲5823.49 ▲0.45739.07 ▲80.0446.55 ▼20.24
Media Library /wp-admin/upload.php1,445 ▲574.42 ▲0.1699.90 ▼6.3874.47 ▲27.31
Přihlašování /wp-admin/admin.php?page=skautis-integration_login8881.8328.1233.46
Moduly /wp-admin/admin.php?page=skautis-integration_modules8701.9325.7428.96
Správa pravidel /wp-admin/edit.php?post_type=skautis_rules1,1512.2235.9730.42
Správa uživatelů /wp-admin/admin.php?page=skautis-integration_usersManagement8612.3338.6728.31
Obecné /wp-admin/admin.php?page=skautis-integration8891.9227.0329.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/skautis-integration/uninstall.php
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Vendor\\Skautis\\Wsdl\\WebServiceFactoryInterface' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/Wsdl/WebServiceFactory.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Modules\\Module' not found in wp-content/plugins/skautis-integration/src/modules/Visibility/class-visibility.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Vendor\\Skautis\\Exception' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/StaticClassException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Skautis_Integration\\Vendor\\Skautis\\Wsdl\\WsdlException' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/Wsdl/PermissionException.php:10
    • > PHP Fatal error
      Trait 'Skautis_Integration\\Vendor\\Skautis\\HelperTrait' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/Skautis.php on line 15
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Vendor\\Skautis\\Wsdl\\WebServiceInterface' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/Wsdl/Decorator/AbstractDecorator.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Vendor\\Skautis\\Exception' not found in wp-content/plugins/skautis-integration/vendor/skautis/skautis/src/Wsdl/WsdlException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Rules\\Rule' not found in wp-content/plugins/skautis-integration/src/rules/Rule/class-all.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Vendor\\Skautis\\SessionAdapter\\AdapterInterface' not found in wp-content/plugins/skautis-integration/src/auth/class-transient-session-adapter.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Skautis_Integration\\Rules\\Rule' not found in wp-content/plugins/skautis-integration/src/rules/Rule/class-membership.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: plugin, multisite, skautis, skaut, shortcode...

skautis-integration/skautis-integration.php Passed 13 tests

The main PHP script in "skautIS integrace" version 1.1.28 is automatically included on every request by WordPress
33 characters long description:
Integrace WordPressu se skautISem

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin9,557 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP881,2144,3666,449
SVG1002,671
JSON100234
JavaScript15429193
CSS100810

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.17
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces29
Interfaces8
Traits2
Classes66
▷ Abstract classes11.52%
▷ Concrete classes6598.48%
▷ Final classes2843.08%
Methods496
▷ Static methods17735.69%
▷ Public methods41383.27%
▷ Protected methods295.85%
▷ Private methods5410.89%
Functions30
▷ Named functions723.33%
▷ Anonymous functions2376.67%
Constants36
▷ Global constants513.89%
▷ Class constants3186.11%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bundled/datatables-files/sort_asc.png0.16KB0.25KB0.00%
src/modules/Shortcodes/admin/public/img/lilie.png48.30KB2.18KB▼ 95.49%
bundled/datatables-files/sort_desc.png0.15KB0.25KB0.00%
src/frontend/public/img/lilie.png5.15KB2.57KB▼ 50.14%
src/admin/public/img/lilie.png3.49KB1.14KB▼ 67.35%