84% wc-footer-links

Code Review | Special Footer Links

WordPress plugin Special Footer Links scored84%from 54 tests.

About plugin

  • Plugin page: wc-footer-links
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.6
  • WordPress version: 6.3.1
  • First release: Sep 12, 2009
  • Latest release: Aug 17, 2013
  • Number of updates: 13
  • Update frequency: every 110.4 days
  • Top authors: willshouse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Special Footer Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.59 ▲7.17
Dashboard /wp-admin3.31 ▲0.0143.43 ▼5.34
Posts /wp-admin/edit.php3.37 ▲0.0145.11 ▼2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.70 ▼4.64
Media Library /wp-admin/upload.php3.24 ▲0.0136.37 ▲0.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
wc_special_footer_timestamp
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
wc_special_footer_cache

Browser metrics Passed 4 tests

This is an overview of browser requirements for Special Footer Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.031.77 ▼0.1539.76 ▲1.00
Dashboard /wp-admin2,186 ▲55.50 ▼0.2182.98 ▼20.9138.70 ▼1.53
Posts /wp-admin/edit.php2,079 ▼181.99 ▲0.0034.61 ▼2.8634.12 ▲1.15
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.10609.87 ▼15.5875.34 ▼2.57
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0295.21 ▼2.8542.36 ▲1.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wc-footer-links/wc-special-footer-links.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: footer, links

wc-footer-links/wc-special-footer-links.php 92% from 13 tests

This is the main PHP file of "Special Footer Links" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-footer-links.php" instead of "wc-special-footer-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin