77% eelv-my-widgets

Code Review | My shared widgets

WordPress plugin My shared widgets scored77%from 54 tests.

About plugin

  • Plugin page: eelv-my-widgets
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Oct 29, 2015
  • Number of updates: 43
  • Update frequency: every 25.6 days
  • Top authors: bastho (79.07%)ecolosites (23.26%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,721 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.07MB] [CPU: ▼10.09ms] Passed 4 tests

A check of server-side resources used by My shared widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6215.93 ▼25.50
Dashboard /wp-admin3.41 ▲0.1146.04 ▼2.50
Posts /wp-admin/edit.php3.46 ▲0.1144.73 ▼1.19
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.83 ▼10.47
Media Library /wp-admin/upload.php3.34 ▲0.1134.29 ▼1.89
My shared widgets /wp-admin/edit.php?post_type=eelv_widget3.3834.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by My shared widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.24 ▼1.131.58 ▼0.1539.35 ▼0.87
Dashboard /wp-admin2,217 ▲254.89 ▼0.0897.10 ▼10.5138.79 ▼6.44
Posts /wp-admin/edit.php2,100 ▲142.03 ▲0.0135.09 ▼3.0432.03 ▼1.54
Add New Post /wp-admin/post-new.php1,539 ▲623.38 ▲0.04581.23 ▼108.9855.63 ▲4.16
Media Library /wp-admin/upload.php1,402 ▲114.25 ▲0.04100.77 ▼2.2440.31 ▼4.10
My shared widgets /wp-admin/edit.php?post_type=eelv_widget1,0801.9730.6628.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=eelv_widget
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/eelv-my-widgets/widgets.php+99
    Trying to get property 'Auto_increment' of non-object

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/eelv-my-widgets/widgets.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Add images for these screenshots: #1 (Editor), #2 (List of widgets)
  • Screenshots: These screenshots lack descriptions #0, #0 in eelv-my-widgets/assets to your readme.txt
The official readme.txt might help

eelv-my-widgets/widgets.php 85% from 13 tests

The primary PHP file in "My shared widgets" version 1.7.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eelv-my-widgets.php" instead of "widgets.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin463 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15446329
PO File15068103
JavaScript10119
CSS12012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin