67% podamibe-simple-footer-widget-area

Code Review | Podamibe Simple Footer Widget Area

WordPress plugin Podamibe Simple Footer Widget Area scored 67% from 54 tests.

About plugin

  • Plugin page: podamibe-simple-f...
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.7+
  • WordPress version: 5.8.1
  • First release: Oct 3, 2016
  • Latest release: May 22, 2019
  • Number of updates: 26
  • Update frequency: every 37.0 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

7,000+ active / 74,299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.50MB] [CPU: ▼217.83ms] Passed 4 tests

Analyzing server-side resources used by Podamibe Simple Footer Widget Area
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼0.738.60 ▼26.56
Dashboard /wp-admin2.15 ▼0.9111.97 ▼31.85
Posts /wp-admin/edit.php2.15 ▼0.9611.10 ▼36.03
Add New Post /wp-admin/post-new.php2.14 ▼3.299.23 ▼776.89
Media Library /wp-admin/upload.php2.15 ▼0.8510.25 ▼23.76
SFWA Setting /wp-admin/options-general.php?page=sfwarea-settings2.159.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_sfwa_button_widget
widget_sfwa_social_widget
widget_sfwa_google_map_widget
widget_sfwa_ads
widget_sfwa_contact_widget
widget_sfwa_footer_widget
widget_sfwa_credential

Browser metrics Passed 4 tests

An overview of browser requirements for Podamibe Simple Footer Widget Area
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,749 ▲15316.57 ▲0.5210.40 ▼0.3647.93 ▼2.57
Dashboard /wp-admin3,022 ▲916.67 ▲0.69152.69 ▼2.87113.77 ▲9.75
Posts /wp-admin/edit.php2,775 ▲363.04 ▲0.3273.89 ▲1.2288.07 ▼4.03
Add New Post /wp-admin/post-new.php1,707 ▲20518.84 ▲0.09369.18 ▼41.38114.22 ▲8.01
Media Library /wp-admin/upload.php1,855 ▲485.20 ▲0.18143.17 ▼9.72113.16 ▲1.57
SFWA Setting /wp-admin/options-general.php?page=sfwarea-settings1,4604.2783.9772.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/podamibe-simple-footer-widget-area/simple-footer-widget-area.php+161
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_sfwa_footer_widget
    • widget_sfwa_contact_widget
    • widget_sfwa_social_widget
    • widget_sfwa_ads
    • widget_sfwa_credential
    • widget_sfwa_google_map_widget
    • widget_sfwa_button_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sfwarea-settings
    • > Notice in wp-content/plugins/podamibe-simple-footer-widget-area/simple-footer-widget-area.php+75
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-google-map-widget.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-contact.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-credential.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-button-widget.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-ads.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/simple-footer-widget-area.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-social-widget.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/widgets/sfwa-footer-widget.php
    • > /wp-content/plugins/podamibe-simple-footer-widget-area/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% 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 to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

podamibe-simple-footer-widget-area/simple-footer-widget-area.php 69% from 13 tests

This is the main PHP file of "Podamibe Simple Footer Widget Area" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 275 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("podamibe-simple-footer-widget-area.php" instead of "simple-footer-widget-area.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.0.7")

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
There were no executable files found in this plugin2,011 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP91191771,538
CSS2318422
JavaScript2231651

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.00
▷ Minimum class complexity6.00
▷ Maximum class complexity125.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected