90% footer-shortcodes

Code Review | Footer Shortcodes

WordPress plugin Footer Shortcodes scored90%from 54 tests.

About plugin

  • Plugin page: footer-shortcodes
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Oct 14, 2019
  • Latest release: Dec 30, 2020
  • Number of updates: 9
  • Update frequency: every 49.6 days
  • Top authors: ultranorman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.97ms] Passed 4 tests

Server-side resources used by Footer Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.82 ▼2.97
Dashboard /wp-admin3.31 ▲0.0145.75 ▼3.39
Posts /wp-admin/edit.php3.36 ▲0.0146.99 ▼3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.94 ▼9.64
Media Library /wp-admin/upload.php3.23 ▲0.0135.86 ▲2.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Footer Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.84 ▲0.431.80 ▼0.2838.84 ▼4.87
Dashboard /wp-admin2,200 ▲125.85 ▲0.99113.58 ▼4.7742.81 ▼4.84
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0138.74 ▲3.4536.38 ▲3.69
Add New Post /wp-admin/post-new.php1,520 ▲623.29 ▲5.90663.50 ▼3.5452.77 ▼0.29
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0399.57 ▲5.3941.92 ▼1.65

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #0 (There are no screenshots.)
You can look at the official readme.txt

footer-shortcodes/footer-shortcodes.php Passed 13 tests

The main file in "Footer Shortcodes" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Shortcodes for your footer to display the copyright symbol, the year and the site title linked to the homepage.

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 plugin169 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP984422169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1881.82%
▷ Protected methods00.00%
▷ Private methods418.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin