10% fest-widget

Code Review | Fest Widget

WordPress plugin Fest Widget scored10%from 54 tests.

About plugin

  • Plugin page: fest-widget
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: Nov 23, 2017
  • Number of updates: 5
  • Update frequency: every 333.6 days
  • Top authors: adarre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,905 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/fest-widget/fest.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; fest_widget has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼61.59ms] Passed 4 tests

An overview of server-side resources used by Fest Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.91 ▼39.20
Dashboard /wp-admin2.18 ▼1.176.94 ▼61.58
Posts /wp-admin/edit.php2.18 ▼1.186.61 ▼46.03
Add New Post /wp-admin/post-new.php2.18 ▼3.717.35 ▼99.56
Media Library /wp-admin/upload.php2.18 ▼1.055.36 ▼31.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_widget-fest
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fest Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.43 ▲0.031.81 ▼0.4844.06 ▲0.61
Dashboard /wp-admin2,206 ▲184.86 ▼1.02114.00 ▼3.3442.55 ▼1.75
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0038.81 ▼0.2335.64 ▲0.18
Add New Post /wp-admin/post-new.php1,542 ▲2318.24 ▼4.98646.77 ▼42.2057.24 ▼7.68
Media Library /wp-admin/upload.php1,391 ▲34.16 ▲0.0297.93 ▼16.2543.47 ▼6.22

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/fest-widget/fest.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; fest_widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_widget-fest
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/fest-widget/fest.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Exemple de widget), #2 (Configuration du widget côté administration)
You can take inspiration from this readme.txt

fest-widget/fest.php 85% from 13 tests

"Fest Widget" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("fest-widget.php" instead of "fest.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 detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15530189
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity15.75
▷ Minimum method complexity1.00
▷ Maximum method complexity51.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo_fest.png4.90KB1.53KB▼ 68.74%