83% footer-flyout-widget

Code Review | Footer Flyout Widget

WordPress plugin Footer Flyout Widget scored83%from 54 tests.

About plugin

  • Plugin page: footer-flyout-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: Nov 17, 2015
  • Number of updates: 16
  • Update frequency: every 0.8 days
  • Top authors: wpwox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.49ms] Passed 4 tests

A check of server-side resources used by Footer Flyout Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.04 ▼2.70
Dashboard /wp-admin3.35 ▲0.0542.96 ▼4.17
Posts /wp-admin/edit.php3.40 ▲0.0547.10 ▼4.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.58 ▼14.96
Media Library /wp-admin/upload.php3.28 ▲0.0540.74 ▲7.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Footer Flyout Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.62 ▼0.742.26 ▲0.4035.01 ▼7.84
Dashboard /wp-admin2,222 ▲344.84 ▼0.04109.98 ▲4.4543.05 ▲1.17
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0138.83 ▼3.1934.52 ▲0.29
Add New Post /wp-admin/post-new.php1,546 ▲423.06 ▲4.72582.32 ▼65.6650.48 ▼5.27
Media Library /wp-admin/upload.php1,398 ▲164.17 ▼0.0598.48 ▼5.2444.56 ▲0.91

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/footer-flyout-widget/footer-flyout-widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 ('/assets/sidebar.png'), #2 ('/assets/settings.png')
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

footer-flyout-widget/footer-flyout-widget.php 92% from 13 tests

The principal PHP file in "Footer Flyout Widget" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin417 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19722284
CSS119878
JavaScript120355

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin