84% thisismyjam-widget

Code Review | This Is My Jam Widget

WordPress plugin This Is My Jam Widget scored84%from 54 tests.

About plugin

  • Plugin page: thisismyjam-widget
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Jul 8, 2015
  • Number of updates: 9
  • Update frequency: every 111.1 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,929 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.59ms] Passed 4 tests

An overview of server-side resources used by This Is My Jam Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.04 ▼0.90
Dashboard /wp-admin3.32 ▲0.0150.94 ▲3.89
Posts /wp-admin/edit.php3.37 ▲0.0148.07 ▼2.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.78 ▼22.63
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▼3.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent_jam
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This Is My Jam Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.151.68 ▼1.3340.57 ▼3.88
Dashboard /wp-admin2,206 ▲154.83 ▼0.02105.06 ▲2.6941.21 ▼1.50
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0433.99 ▼7.9835.64 ▼4.21
Add New Post /wp-admin/post-new.php1,532 ▼1023.37 ▲4.97674.27 ▲22.1561.76 ▼0.09
Media Library /wp-admin/upload.php1,385 ▼64.25 ▼0.0097.06 ▼7.7649.66 ▲1.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent_jam
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thisismyjam-widget/timj-widget.php:27

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: this is my jam, music

thisismyjam-widget/timj-widget.php 92% from 13 tests

This is the main PHP file of "This Is My Jam Widget" version 1.02, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("thisismyjam-widget.php" instead of "timj-widget.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
Good job! No executable or dangerous file extensions detected94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1285176
CSS13018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity2.00
▷ Maximum method complexity9.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin