84% vgw-metis

Code Review | VG WORT METIS

WordPress plugin VG WORT METIS scored84%from 54 tests.

About plugin

  • Plugin page: vgw-metis
  • Plugin version: 1.1.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2023
  • Latest release: May 17, 2023
  • Number of updates: 12
  • Update frequency: every 11.0 days
  • Top authors: prioritservices (83.33%)vgwort (25%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.77ms] Passed 4 tests

This is a short check of server-side resources used by VG WORT METIS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.81 ▼7.60
Dashboard /wp-admin3.31 ▲0.0046.41 ▼3.85
Posts /wp-admin/edit.php3.36 ▲0.0049.36 ▼0.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.53 ▼9.47
Media Library /wp-admin/upload.php3.23 ▲0.0032.56 ▼2.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for VG WORT METIS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.112.02 ▲0.2547.11 ▲1.57
Dashboard /wp-admin2,206 ▲156.06 ▲1.17106.43 ▼9.5040.64 ▼8.84
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0141.95 ▲4.1835.29 ▲1.29
Add New Post /wp-admin/post-new.php1,538 ▲523.26 ▲0.17641.98 ▼53.2558.11 ▲4.46
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0996.98 ▼10.4941.92 ▼3.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 81× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/vgw-metis/vendor/psr/http-client/src/RequestExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_VGWORT\\esc_html_e() in wp-content/plugins/vgw-metis/admin/partials/message_error.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/vgw-metis/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/vgw-metis/admin/page_messages.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/vgw-metis/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/vgw-metis/vendor/guzzlehttp/psr7/src/CachingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/vgw-metis/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_VGWORT\\Page' not found in wp-content/plugins/vgw-metis/admin/page_dashboard.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/vgw-metis/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/vgw-metis/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: tom, zhlmarke, verlag, metis, meldung...

vgw-metis/vgw-metis.php 92% from 13 tests

The main file in "VG WORT METIS" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin20,146 lines of code in 189 files:
LanguageFilesBlank linesComment linesLines of code
PHP1573,1318,38314,584
Markdown171,37603,928
JSON9001,028
JavaScript49794458
CSS13518141
YAML1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.27
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces12
Interfaces26
Traits3
Classes106
▷ Abstract classes00.00%
▷ Concrete classes106100.00%
▷ Final classes3533.02%
Methods1,016
▷ Static methods22822.44%
▷ Public methods87686.22%
▷ Protected methods80.79%
▷ Private methods13212.99%
Functions126
▷ Named functions3426.98%
▷ Anonymous functions9273.02%
Constants125
▷ Global constants00.00%
▷ Class constants125100.00%
▷ Public constants11491.20%

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 were not PNG files found in your plugin