68% wp-worthy

Code Review | Worthy - VG WORT Integration für Wordpress

WordPress plugin Worthy - VG WORT Integration für Wordpress scored68%from 54 tests.

About plugin

  • Plugin page: wp-worthy
  • Plugin version: 1.7.0-0cde1c2...
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Sep 4, 2023
  • Number of updates: 91
  • Update frequency: every 32.7 days
  • Top authors: tiggerswelt (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /22,866 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.06MB] [CPU: ▲9.29ms] Passed 4 tests

Server-side resources used by Worthy - VG WORT Integration für Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0250.26 ▲7.28
Dashboard /wp-admin5.38 ▲2.0760.43 ▲10.85
Posts /wp-admin/edit.php5.50 ▲2.1464.18 ▲13.09
Add New Post /wp-admin/post-new.php7.99 ▲2.10103.95 ▲6.26
Media Library /wp-admin/upload.php5.30 ▲2.0749.96 ▲12.76
Settings /wp-admin/admin.php?page=wp_worthy-settings5.2744.52
Posts /wp-admin/admin.php?page=wp_worthy-posts5.3057.46
Admin /wp-admin/admin.php?page=wp_worthy-admin5.2749.11
Import / Export /wp-admin/admin.php?page=wp_worthy-convert5.2648.99
Premium /wp-admin/admin.php?page=wp_worthy-premium5.2643.84
Overview /wp-admin/admin.php?page=wp_worthy-overview5.2748.83
Markers /wp-admin/admin.php?page=wp_worthy-markers5.2845.25

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 9 new options
New tables
wp_worthy_markers
New WordPress options
wp-worthy-pixel-table-version
theysaidso_admin_options
wp-worthy-version
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
wp-worthy-lazy-loading
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Worthy - VG WORT Integration für Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10313.21 ▼1.134.61 ▲2.8944.01 ▲0.34
Dashboard /wp-admin2,268 ▲905.75 ▲0.0996.96 ▼20.2241.69 ▼0.64
Posts /wp-admin/edit.php2,181 ▲842.24 ▲0.2336.78 ▼3.1034.41 ▼0.46
Add New Post /wp-admin/post-new.php1,639 ▲11323.72 ▲0.52717.61 ▲89.1555.44 ▲3.36
Media Library /wp-admin/upload.php1,541 ▲1444.29 ▲0.1295.95 ▼6.7541.22 ▼3.18
Settings /wp-admin/admin.php?page=wp_worthy-settings1,0001.9027.9427.71
Posts /wp-admin/admin.php?page=wp_worthy-posts1,5062.4527.8141.80
Admin /wp-admin/admin.php?page=wp_worthy-admin1,1411.9126.4727.92
Import / Export /wp-admin/admin.php?page=wp_worthy-convert1,0521.9126.6135.95
Premium /wp-admin/admin.php?page=wp_worthy-premium8452.1428.6824.94
Overview /wp-admin/admin.php?page=wp_worthy-overview8722.1429.3531.72
Markers /wp-admin/admin.php?page=wp_worthy-markers1,2681.7636.6535.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_worthy_markers
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • wp-worthy-pixel-table-version
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-worthy/wp-worthy.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > 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/wp-worthy/table/posts.php on line 21
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-worthy/table/posts.php on line 21
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-worthy/table/markers.php on line 21
    • > 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/wp-worthy/table/markers.php on line 21
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-worthy/table/markers.php on line 21
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-worthy/table/posts.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

wp-worthy/wp-worthy.php 92% from 13 tests

This is the main PHP file of "Worthy - VG WORT Integration für Wordpress" version 1.7.0-0cde1c2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.7.0-0cde1c2...")

Code Analysis 97% from 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 plugin10,761 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,9303,2428,454
PO File1585281,172
JavaScript314596755
CSS1890378
SVG1002

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,114)
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity211.56
▷ Minimum class complexity3.00
▷ Maximum class complexity1,114.00
Average method complexity8.35
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods242
▷ Static methods3313.64%
▷ Public methods20383.88%
▷ Protected methods93.72%
▷ Private methods3012.40%
Functions14
▷ Named functions00.00%
▷ Anonymous functions14100.00%
Constants33
▷ Global constants00.00%
▷ Class constants33100.00%
▷ Public constants33100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin_icon_big.png1.56KB1.58KB0.00%
assets/paypal.png4.35KB2.74KB▼ 37.02%
assets/giropay.png5.41KB2.79KB▼ 48.38%