10% me-widget

Code Review | Me Widget

WordPress plugin Me Widget scored10%from 54 tests.

About plugin

  • Plugin page: me-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Aug 12, 2014
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: Kyly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,036 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/me-widget/MeWidget.php+62
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼52.11ms] Passed 4 tests

A check of server-side resources used by Me Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.294.39 ▼33.61
Dashboard /wp-admin2.19 ▼1.157.22 ▼53.54
Posts /wp-admin/edit.php2.19 ▼1.165.78 ▼39.11
Add New Post /wp-admin/post-new.php2.19 ▼3.706.61 ▼82.18
Media Library /wp-admin/upload.php2.19 ▼1.046.11 ▼29.94

Server storage [IO: ▲0.65MB] [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: 13 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_widget_me
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Me Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.78 ▲0.141.70 ▲0.0335.93 ▼4.65
Dashboard /wp-admin2,209 ▲184.85 ▼0.0497.58 ▼7.2739.69 ▼1.44
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0333.96 ▼1.1633.93 ▼7.15
Add New Post /wp-admin/post-new.php1,530 ▲1123.35 ▲0.14662.58 ▼23.1762.50 ▲7.80
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0097.33 ▼9.8843.03 ▼4.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/me-widget/MeWidget.php+62
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_widget_me
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/me-widget/MeWidget.php
  • 1× 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/me-widget/class.MeWidget.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

me-widget/MeWidget.php 92% from 13 tests

The entry point to "Me Widget" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("me-widget.php" instead of "MeWidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,073 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG100504
PHP392144389
CSS32764104
Markdown113076

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity5.55
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods545.45%
▷ Protected methods00.00%
▷ Private methods654.55%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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