83% fupanet-widget-includer

Code Review | Fupa.Net Widget Shortcode

WordPress plugin Fupa.Net Widget Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: fupanet-widget-in...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Dec 17, 2013
  • Number of updates: 12
  • Update frequency: every 7.9 days
  • Top authors: dbrueckers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼16.37ms] Passed 4 tests

This is a short check of server-side resources used by Fupa.Net Widget Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.99 ▲7.03
Dashboard /wp-admin3.32 ▼0.0350.43 ▼23.05
Posts /wp-admin/edit.php3.37 ▲0.0155.22 ▲1.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.43 ▼47.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.95 ▲3.11

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Fupa.Net Widget Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.251.73 ▲0.2142.09 ▲0.85
Dashboard /wp-admin2,198 ▲245.64 ▲0.0683.82 ▼11.2041.16 ▼0.65
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.60 ▲3.9937.62 ▲2.96
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.10617.54 ▼75.2446.83 ▼10.88
Media Library /wp-admin/upload.php1,403 ▲94.16 ▼0.0497.73 ▼11.1945.09 ▲2.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Everything seems fine, however 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fupanet-widget-includer/fupanet-shortcode.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Button in editor), #2 (Answer questions), #3 (Result)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === fupanet-widget-includer === )
The official readme.txt might help

fupanet-widget-includer/fupanet-shortcode.php 85% from 13 tests

"Fupa.Net Widget Shortcode" version 0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fupanet-widget-includer.php" instead of "fupanet-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161163
JavaScript12038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
mce_button.png0.72KB0.57KB▼ 20.68%