10% glitch-profile-widget

Code Review | Glitch Profile Widget

WordPress plugin Glitch Profile Widget scored10%from 54 tests.

About plugin

  • Plugin page: glitch-profile-wi...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Nov 8, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: theonewithout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /812 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/glitch-profile-widget/glitch-profile.php+178
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.98ms] Passed 4 tests

A check of server-side resources used by Glitch Profile Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.27 ▼34.44
Dashboard /wp-admin2.05 ▼1.265.83 ▼45.09
Posts /wp-admin/edit.php2.05 ▼1.315.59 ▼46.24
Add New Post /wp-admin/post-new.php2.05 ▼3.845.13 ▼98.13
Media Library /wp-admin/upload.php2.05 ▼1.185.58 ▼32.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_glitchprofilewidget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Glitch Profile Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.021.76 ▼0.1944.45 ▼3.36
Dashboard /wp-admin2,195 ▲185.64 ▼0.0589.82 ▼5.9038.70 ▼4.00
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0839.57 ▼1.2135.86 ▼0.61
Add New Post /wp-admin/post-new.php1,545 ▲523.16 ▲5.06634.37 ▼18.6453.33 ▼21.83
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0697.94 ▼20.6745.82 ▼0.41

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
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/glitch-profile-widget/glitch-profile.php+178
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_glitchprofilewidget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/glitch-profile-widget/glitch-profile.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Screenshots: Add images for these screenshots: #1 (How it might look (this one uses the Cleanr theme)), #2 (What you're able to set (in v1.0))
The official readme.txt is a good inspiration

glitch-profile-widget/glitch-profile.php 85% from 13 tests

The main file in "Glitch Profile Widget" v. 1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
  • Main file name: The principal plugin file should be the same as the plugin slug ("glitch-profile-widget.php" instead of "glitch-profile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected177 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22321154
JavaScript10012
CSS10011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.85KB12.49KB▼ 61.97%
sprite.png3.79KB2.27KB▼ 40.07%
screenshot-2.png5.52KB3.66KB▼ 33.75%