72% footer-putter

Code Review | Footer Putter

WordPress plugin Footer Putter scored72%from 54 tests.

About plugin

  • Plugin page: footer-putter
  • Plugin version: 1.17
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.6.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: Mar 1, 2021
  • Number of updates: 44
  • Update frequency: every 68.0 days
  • Top authors: powerblogservice (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

10,000+ active /280,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.72MB] [CPU: ▼4.09ms] Passed 4 tests

An overview of server-side resources used by Footer Putter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5340.69 ▼0.23
Dashboard /wp-admin4.13 ▲0.8349.35 ▲3.13
Posts /wp-admin/edit.php4.18 ▲0.8348.68 ▼4.12
Add New Post /wp-admin/post-new.php6.65 ▲0.7686.09 ▼15.12
Media Library /wp-admin/upload.php3.99 ▲0.7640.25 ▲4.19
Dashboard /wp-admin/admin.php?page=footer-putter3.9936.95
Footer /wp-admin/admin.php?page=footer-putter-footer3.9635.52
Trademarks /wp-admin/admin.php?page=footer-putter-trademarks3.9831.62
Add New /wp-admin/link-add.php3.9753.71
Credits /wp-admin/admin.php?page=footer-putter-credits4.0037.89
All Links /wp-admin/link-manager.php4.0134.22
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.9938.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 9 new options
New WordPress options
footer_putter_plugin_activation
widget_recent-comments
widget_footer_copyright
widget_footer_trademarks
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Footer Putter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12513.27 ▼1.111.65 ▼0.2239.85 ▼6.13
Dashboard /wp-admin2,272 ▲815.04 ▼0.0199.46 ▼9.3237.59 ▼4.44
Posts /wp-admin/edit.php2,155 ▲662.02 ▼0.0337.31 ▲0.6937.35 ▲4.13
Add New Post /wp-admin/post-new.php1,587 ▲5123.16 ▲0.18690.98 ▲85.0859.62 ▼11.95
Media Library /wp-admin/upload.php1,454 ▲664.19 ▲0.0297.55 ▲0.1542.07 ▼0.39
Dashboard /wp-admin/admin.php?page=footer-putter1,4492.4650.0937.10
Footer /wp-admin/admin.php?page=footer-putter-footer1,2562.5049.5437.16
Trademarks /wp-admin/admin.php?page=footer-putter-trademarks1,1232.2951.6865.24
Add New /wp-admin/link-add.php1,6822.2348.3933.26
Credits /wp-admin/admin.php?page=footer-putter-credits1,3652.4248.4437.37
All Links /wp-admin/link-manager.php1,0911.7222.9828.14
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,3342.1426.3329.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_footer_copyright
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • footer_putter_plugin_activation
    • widget_footer_trademarks
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=footer-putter-footer
    • > Notice in wp-content/plugins/footer-putter/classes/class-footer-admin.php+88
    Undefined index: hide_wordpress

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
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-putter/classes/class-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-footer.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Widget' not found in wp-content/plugins/footer-putter/classes/class-trademarks-widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-trademarks-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-news.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Widget' not found in wp-content/plugins/footer-putter/classes/class-credits-widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-credits-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-credits.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-footer-admin.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=footer-putter-credits
    • > Network (severe)
    wp-content/plugins/footer-putter/styles/metabox.css?ver=1.17 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7 in footer-putter/assets to your readme.txt
The official readme.txt is a good inspiration

footer-putter/main.php 92% from 13 tests

The primary PHP file in "Footer Putter" version 1.17 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("footer-putter.php" instead of "main.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,360 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP18587503,147
CSS4130152
JavaScript32361

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 175)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity41.76
▷ Minimum class complexity1.00
▷ Maximum class complexity196.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity175.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes317.65%
▷ Concrete classes1482.35%
▷ Final classes00.00%
Methods318
▷ Static methods10.31%
▷ Public methods29492.45%
▷ Protected methods10.31%
▷ Private methods237.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants1055.56%
▷ Class constants844.44%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-16.png0.46KB0.73KB0.00%
styles/images/icon-32.png2.96KB1.74KB▼ 41.22%
images/logo.png25.92KB21.41KB▼ 17.42%
images/icon-32.png2.96KB1.74KB▼ 41.22%