83% vk-post-author-display

Code Review | VK Post Author Display

WordPress plugin VK Post Author Display scored83%from 54 tests.

About plugin

  • Plugin page: vk-post-author-di...
  • Plugin version: 1.24.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2013
  • Latest release: Oct 19, 2023
  • Number of updates: 183
  • Update frequency: every 21.3 days
  • Top authors: kurudrive (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active /181,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by VK Post Author Display
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.45 ▲2.27
Dashboard /wp-admin3.37 ▲0.02219.38 ▲158.16
Posts /wp-admin/edit.php3.48 ▲0.1252.48 ▼1.80
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.92 ▼8.99
Media Library /wp-admin/upload.php3.28 ▲0.0539.57 ▲0.45
VK Post Author Display /wp-admin/options-general.php?page=pad_plugin_options3.34207.54

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
vk_font_awesome_version
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for VK Post Author Display
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.82 ▼0.531.79 ▼0.1543.74 ▲0.91
Dashboard /wp-admin2,278 ▲1046.04 ▲0.4487.77 ▼6.4292.86 ▲49.24
Posts /wp-admin/edit.php2,131 ▲282.29 ▲0.3140.52 ▼0.3634.88 ▼3.31
Add New Post /wp-admin/post-new.php6,232 ▲4,70625.39 ▲2.231,015.97 ▲354.9836.76 ▼19.01
Media Library /wp-admin/upload.php1,423 ▲204.35 ▲0.19101.38 ▼7.1539.49 ▼9.44
VK Post Author Display /wp-admin/options-general.php?page=pad_plugin_options1,2493.3040.6174.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • vk_font_awesome_version
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vk-post-author-display/admin/admin-profile.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-post-author-display/hide_controller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'VektorInc\\VK_Admin\\VkAdmin' not found in wp-content/plugins/vk-post-author-display/admin/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-post-author-display/inc/term-color/package/class.term-color.php:253
    • > PHP Warning
      require_once(VK_PAD_DIRvendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/vk-post-author-display/inc/font-awesome/config.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'VektorInc\\VK_Swiper\\VkSwiper' not found in wp-content/plugins/vk-post-author-display/vendor/vektor-inc/vk-admin/config.php:8
    • > PHP Warning
      Use of undefined constant VK_PAD_DIR - assumed 'VK_PAD_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/vk-post-author-display/inc/font-awesome/config.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-post-author-display/inc/term-color/term-color-config.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/vk-post-author-display/post-author-display.php:59
    • > PHP Fatal error
      require_once(): Failed opening required 'VK_PAD_DIRvendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/vk-post-author-display/inc/font-awesome/config.php on line 7

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 87% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: Please add images for these screenshots: #1 (Display to post author information with latest entries box on bottom of the contents.), #2 (user information edit page.), #3 (You can edit "Post author box title","Post list box title","Display post thumbnail image" and more...)
The official readme.txt is a good inspiration

vk-post-author-display/post-author-display.php 85% from 13 tests

"VK Post Author Display" version 1.24.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vk-post-author-display.php" instead of "post-author-display.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,628 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
SVG40158,755
PHP275199872,497
JSON100104
JavaScript3144372
PO File2172472
XML341263
Bourne Shell317532
Markdown23023
CSS621310

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity27.38
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods94
▷ Static methods6063.83%
▷ Public methods9196.81%
▷ Protected methods00.00%
▷ Private methods33.19%
Functions64
▷ Named functions6296.88%
▷ Anonymous functions23.12%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.63MB with 0.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png130.34KB49.28KB▼ 62.20%
screenshot-3.png118.22KB42.29KB▼ 64.23%
screenshot-1.png397.41KB135.71KB▼ 65.85%
(invalid) assets/images/no_image.png1.49KB0.00KB▼ 100.00%