84% meks-smart-author-widget

Code Review | Meks Smart Author Widget

WordPress plugin Meks Smart Author Widget scored84%from 54 tests.

About plugin

  • Plugin page: meks-smart-author...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2014
  • Latest release: Sep 11, 2023
  • Number of updates: 55
  • Update frequency: every 64.2 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20,000+ active /380,502 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.06MB] [CPU: ▼2.58ms] Passed 4 tests

This is a short check of server-side resources used by Meks Smart Author Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.68 ▲0.55
Dashboard /wp-admin3.37 ▲0.0749.43 ▼5.33
Posts /wp-admin/edit.php3.42 ▲0.0653.67 ▲1.53
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.83 ▼7.06
Media Library /wp-admin/upload.php3.30 ▲0.0637.17 ▲3.63

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_mks_author_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Meks Smart Author Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.20 ▼1.204.89 ▲2.3047.56 ▲7.91
Dashboard /wp-admin2,208 ▲204.85 ▼0.01108.08 ▼15.7945.63 ▼0.21
Posts /wp-admin/edit.php2,091 ▼11.99 ▼0.0638.86 ▼2.2834.25 ▼6.45
Add New Post /wp-admin/post-new.php1,531 ▲1723.16 ▲5.58596.35 ▼31.7848.18 ▼1.37
Media Library /wp-admin/upload.php1,390 ▼14.21 ▲0.0195.64 ▼6.0544.24 ▼0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_mks_author_widget
    • db_upgraded
    • can_compress_scripts

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)
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
Please take a closer look at the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meks-smart-author-widget/inc/class-author-widget.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_author_posts_url() in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-template.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-co-authors-template.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-template.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/meks-smart-author-widget/meks-smart-author-widget.php:31
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-template.php on line 3
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/meks-smart-author-widget/inc/meks-smart-author-widget-template.php on line 4

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: widget, author, user, avatar, sidebar...

meks-smart-author-widget/meks-smart-author-widget.php 92% from 13 tests

The main PHP script in "Meks Smart Author Widget" version 1.1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 248 characters long)

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
No dangerous file extensions were detected391 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP48743306
PO File1222260
CSS12025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected