84% widget-for-smule-iframes

Code Review | Widget for Smule iFrames

WordPress plugin Widget for Smule iFrames scored84%from 54 tests.

About plugin

  • Plugin page: widget-for-smule-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2017
  • Latest release: Mar 7, 2020
  • Number of updates: 16
  • Update frequency: every 54.6 days
  • Top authors: sownloader (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /706 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼8.04ms] Passed 4 tests

A check of server-side resources used by Widget for Smule iFrames
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.59 ▼5.22
Dashboard /wp-admin3.31 ▼0.0350.51 ▼15.49
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▲2.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.77 ▼10.86
Media Library /wp-admin/upload.php3.24 ▲0.0133.20 ▼0.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_smule_iframe
can_compress_scripts

Browser metrics Passed 4 tests

Widget for Smule iFrames: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.311.67 ▲0.0538.72 ▼0.40
Dashboard /wp-admin2,198 ▲245.63 ▲0.0682.82 ▼3.2937.84 ▼2.01
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0336.68 ▲1.8434.75 ▼3.17
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.06664.09 ▼31.7761.71 ▲9.22
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0892.31 ▼11.9745.86 ▼1.55

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_smule_iframe
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-for-smule-iframes/widget-for-smule-iframes.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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: music, smule

widget-for-smule-iframes/widget-for-smule-iframes.php Passed 13 tests

The primary PHP file in "Widget for Smule iFrames" version 1.0 is used by WordPress to initiate all plugin functionality
82 characters long description:
Allows you to put Smule performances as iFrame into your Wordpress blog as widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171352

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin