84% cl-vg-wort

Code Review | VG Wort - Report texts (automatically) online

WordPress plugin VG Wort - Report texts (automatically) online scored84%from 54 tests.

About plugin

  • Plugin page: cl-vg-wort
  • Plugin version: 0.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 3, 2023
  • Latest release: May 25, 2023
  • Number of updates: 14
  • Update frequency: every 1.6 days
  • Top authors: crayssnlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /197 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.99ms] Passed 4 tests

Server-side resources used by VG Wort - Report texts (automatically) online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.90 ▲2.19
Dashboard /wp-admin3.34 ▲0.0454.09 ▲5.36
Posts /wp-admin/edit.php3.46 ▲0.1051.82 ▲3.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.84 ▼12.08
Media Library /wp-admin/upload.php3.27 ▲0.0438.47 ▲2.05
VG Wort - T(A)OM /wp-admin/options-general.php?page=cl-vg-wort3.3037.83

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by VG Wort - Report texts (automatically) online
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▼0.241.79 ▲0.0644.86 ▲3.01
Dashboard /wp-admin2,199 ▲225.61 ▼0.0687.61 ▼2.3635.27 ▼7.41
Posts /wp-admin/edit.php2,101 ▲11.94 ▼0.0535.64 ▼3.8435.48 ▼5.62
Add New Post /wp-admin/post-new.php1,529 ▲122.98 ▼0.05661.94 ▼15.9756.31 ▼1.51
Media Library /wp-admin/upload.php1,404 ▲14.25 ▲0.08100.09 ▲2.5447.85 ▲4.83
VG Wort - T(A)OM /wp-admin/options-general.php?page=cl-vg-wort1,1092.9941.8626.04

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Action\\WpAjaxNoprivVgWortTransferPixel' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Action/WpAjaxVgWortTransferPixel.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\VgWort\\Rest\\Request' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/VgWort/Rest/Request/Status.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\Event' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/Event/Action.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\SettingsPage\\Table' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/SettingsPage/PixelTable.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\Plugin' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/CrayssnLabsVgWort.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/SettingsPage/Table.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\Event' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/Event/Filter.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\Event' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/Event/Shortcode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\VgWort\\Rest\\Request' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/VgWort/Rest/Request/ReportText.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CrayssnLabsVgWort\\Framework\\VgWort\\Rest\\Request' not found in wp-content/plugins/cl-vg-wort/src/CrayssnLabsVgWort/Framework/VgWort/Rest/Request/OrderPixel.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2 in cl-vg-wort/assets to your readme.txt
Please take inspiration from this readme.txt

cl-vg-wort/cl-vg-wort.php Passed 13 tests

The primary PHP file in "VG Wort - Report texts (automatically) online" version 0.2.2 is used by WordPress to initiate all plugin functionality
99 characters long description:
This plugin automatically integrates the VG Wort tracking pixels and submits them for verification.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,456 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP283587941,141
JavaScript3990315

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.35
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces11
Interfaces0
Traits1
Classes25
▷ Abstract classes832.00%
▷ Concrete classes1768.00%
▷ Final classes00.00%
Methods90
▷ Static methods66.67%
▷ Public methods5965.56%
▷ Protected methods2022.22%
▷ Private methods1112.22%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin