73% wordiz-most-shared-articles-for-authors

Code Review | WordiZ - Most Shared Articles for Authors

WordPress plugin WordiZ - Most Shared Articles for Authors scored73%from 54 tests.

About plugin

  • Plugin page: wordiz-most-share...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2014
  • Latest release: Jul 29, 2014
  • Number of updates: 29
  • Update frequency: every 6.0 days
  • Top authors: tanzaho (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,774 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.84MB] [CPU: ▼54.73ms] Passed 4 tests

Server-side resources used by WordiZ - Most Shared Articles for Authors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.337.23 ▼37.43
Dashboard /wp-admin2.17 ▼1.1314.23 ▼40.58
Posts /wp-admin/edit.php2.17 ▼1.1811.04 ▼41.94
Add New Post /wp-admin/post-new.php2.17 ▼3.727.50 ▼98.95
Media Library /wp-admin/upload.php2.17 ▼1.069.75 ▼27.24

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_baw_elokenz_widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordiZ - Most Shared Articles for Authors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.111.86 ▼0.2342.85 ▲0.62
Dashboard /wp-admin2,203 ▲155.84 ▼0.01109.78 ▲0.5542.91 ▼1.74
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0141.40 ▲4.8935.05 ▼3.00
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.23677.15 ▲11.8954.24 ▼1.88
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.05111.46 ▲4.2447.39 ▲4.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the elokenz handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_baw_elokenz_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordiz-most-shared-articles-for-authors/wordiz_widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

wordiz-most-shared-articles-for-authors/wordiz_widget.php 85% from 13 tests

The primary PHP file in "WordiZ - Most Shared Articles for Authors" version 2.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordiz-most-shared-articles-for-authors.php" instead of "wordiz_widget.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin244 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12514181
PO File1151843
CSS10017
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin