68% edshelf-widget

Code Review | edshelf Widget

WordPress plugin edshelf Widget scored68%from 54 tests.

About plugin

  • Plugin page: edshelf-widget
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.8
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Dec 8, 2016
  • Number of updates: 16
  • Update frequency: every 102.4 days
  • Top authors: mikeleeorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,333 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.73ms] Passed 4 tests

Server-side resources used by edshelf Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.46 ▼32.23
Dashboard /wp-admin2.10 ▼1.207.37 ▼43.55
Posts /wp-admin/edit.php2.10 ▼1.256.08 ▼47.17
Add New Post /wp-admin/post-new.php2.10 ▼3.796.46 ▼91.96
Media Library /wp-admin/upload.php2.10 ▼1.136.12 ▼29.65
edshelf Widgets /wp-admin/tools.php?page=edshelf-widgets2.105.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for edshelf Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8313.21 ▼0.781.96 ▼0.0448.43 ▼0.88
Dashboard /wp-admin2,228 ▲254.87 ▼0.95109.34 ▼5.6137.73 ▼7.02
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0235.71 ▼2.1931.82 ▼11.48
Add New Post /wp-admin/post-new.php1,553 ▲2223.23 ▲0.17642.97 ▼6.9655.34 ▼13.62
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.12106.14 ▼0.0845.93 ▼6.35
edshelf Widgets /wp-admin/tools.php?page=edshelf-widgets8952.1428.3433.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=edshelf-widgets
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
    • > GET request to /wp-admin/tools.php?page=edshelf-widgets
    • > User deprecated in wp-includes/functions.php+5453
    Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.

SRP 50% 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edshelf-widget/edshelf-widgets.php:23

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: collection, tools, apps, edtech, widget...

edshelf-widget/edshelf-widgets.php 92% from 13 tests

The principal PHP file in "edshelf Widget" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("edshelf-widget.php" instead of "edshelf-widgets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin122 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13148122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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