78% shortfundly

Code Review | Shortfundly Shortfundly Widget and Shortcode

WordPress plugin Shortfundly Shortfundly Widget and Shortcode scored78%from 54 tests.

About plugin

  • Plugin page: shortfundly
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jan 5, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: shortfundly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by Shortfundly Shortfundly Widget and Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.31 ▲3.07
Dashboard /wp-admin3.34 ▲0.0351.35 ▼6.03
Posts /wp-admin/edit.php3.39 ▲0.0352.16 ▲0.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.93 ▼10.48
Media Library /wp-admin/upload.php3.26 ▲0.0335.78 ▼2.22
Top Rated Films /wp-admin/options-general.php?page=shortfundly_plugin3.2436.60

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_shortfundly_plugin_widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Shortfundly Shortfundly Widget and Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.26 ▼0.112.01 ▼0.0843.44 ▼0.40
Dashboard /wp-admin2,204 ▲305.62 ▼0.0787.73 ▼21.4437.28 ▼8.73
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0234.09 ▼1.3434.95 ▲1.24
Add New Post /wp-admin/post-new.php1,544 ▼122.97 ▼0.58621.34 ▼24.3357.59 ▲1.92
Media Library /wp-admin/upload.php1,409 ▲64.21 ▼0.0299.49 ▼4.0743.60 ▼1.53
Top Rated Films /wp-admin/options-general.php?page=shortfundly_plugin9112.0522.7826.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_shortfundly_plugin_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/shortfundly/inc/widget-fields.php
    • > /wp-content/plugins/shortfundly/inc/options-page-wrapper.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=shortfundly_plugin
    • > Network (severe)
    wp-content/plugins/shortfundly-plugin-backend.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: shortfilms, top rated shortfilms, videos, widget, shortcode...

shortfundly/shortfundly-plugin.php 92% from 13 tests

The main file in "Shortfundly Shortfundly Widget and Shortcode" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shortfundly.php" instead of "shortfundly-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin397 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP416757313
CSS222884

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin