84% wp-vereinsflieger

Code Review | WP Vereinsflieger

WordPress plugin WP Vereinsflieger scored84%from 54 tests.

About plugin

  • Plugin page: wp-vereinsflieger
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2020
  • Latest release: May 29, 2022
  • Number of updates: 10
  • Update frequency: every 60.5 days
  • Top authors: skennecke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.41MB] [CPU: ▲4.15ms] Passed 4 tests

Server-side resources used by WP Vereinsflieger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3747.94 ▲1.98
Dashboard /wp-admin3.72 ▲0.4258.83 ▲1.05
Posts /wp-admin/edit.php3.78 ▲0.4257.57 ▲4.77
Add New Post /wp-admin/post-new.php6.31 ▲0.42110.41 ▲8.80
Media Library /wp-admin/upload.php3.65 ▲0.4248.52 ▲13.82
Vereinsflieger /wp-admin/admin.php?page=wp-vereinsflieger3.6140.97
Configuration /wp-admin/admin.php?page=wp-vereinsflieger-configure-plugin3.6144.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Vereinsflieger
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4714.18 ▼0.171.69 ▼0.3743.79 ▲3.32
Dashboard /wp-admin2,239 ▲625.57 ▼0.0590.80 ▲4.0740.33 ▼6.21
Posts /wp-admin/edit.php2,148 ▲481.99 ▼0.0344.83 ▲6.2235.03 ▼5.00
Add New Post /wp-admin/post-new.php1,557 ▲2018.04 ▼0.17637.56 ▼29.7662.29 ▼7.87
Media Library /wp-admin/upload.php1,445 ▲484.20 ▼0.0599.05 ▼2.8845.83 ▲1.54
Vereinsflieger /wp-admin/admin.php?page=wp-vereinsflieger1,6362.4729.4536.70
Configuration /wp-admin/admin.php?page=wp-vereinsflieger-configure-plugin9702.1323.5231.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 166× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/property-info/Extractor/PhpDocExtractor.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Serializer\ormalizer\\AbstractObjectNormalizer' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php:35
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Encoder\\EncoderInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/serializer/Encoder/ContextAwareEncoderInterface.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Extractor\\ObjectPropertyListExtractorInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/serializer/Extractor/ObjectPropertyListExtractor.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\PropertyAccess\\PropertyPathInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/property-access/PropertyPath.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Diginize\\WpVereinsflieger\\VereinsfliegerApi\\Model\\VereinsfliegerErrorDto' not found in wp-content/plugins/wp-vereinsflieger/src/VereinsfliegerApi/Responses/LoginFailedResponse.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Serializer\ormalizer\ormalizerInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/symfony/serializer/Normalizer/AbstractNormalizer.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/wp-vereinsflieger/vendor/guzzlehttp/psr7/src/Uri.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: luftsport, sso, vereinsflieger

wp-vereinsflieger/wp-vereinsflieger.php Passed 13 tests

The primary PHP file in "WP Vereinsflieger" version 1.1.0 is used by WordPress to initiate all plugin functionality
70 characters long description:
Allows users to login into wordpress using their Vereinsflieger login.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected39,278 lines of code in 382 files:
LanguageFilesBlank linesComment linesLines of code
PHP3285,53211,77633,124
Markdown271,26603,899
JSON20001,960
PO File13235126
YAML425087
XSD111073
make1409

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.51
Average class complexity12.48
▷ Minimum class complexity1.00
▷ Maximum class complexity169.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces48
Interfaces71
Traits8
Classes217
▷ Abstract classes83.69%
▷ Concrete classes20996.31%
▷ Final classes4521.53%
Methods1,708
▷ Static methods28616.74%
▷ Public methods1,43483.96%
▷ Protected methods502.93%
▷ Private methods22413.11%
Functions237
▷ Named functions12753.59%
▷ Anonymous functions11046.41%
Constants236
▷ Global constants114.66%
▷ Class constants22595.34%
▷ Public constants19586.67%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin