73% footer-links-commando

Code Review | Footer Links Commando

WordPress plugin Footer Links Commando scored73%from 54 tests.

About plugin

  • Plugin page: footer-links-comm...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: Dec 1, 2014
  • Number of updates: 7
  • Update frequency: every 5.7 days
  • Top authors: Commando SEO (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,248 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.85MB] [CPU: ▼34.45ms] Passed 4 tests

This is a short check of server-side resources used by Footer Links Commando
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.27 ▲2.23
Dashboard /wp-admin3.09 ▼0.2123.24 ▼32.54
Posts /wp-admin/edit.php3.09 ▼0.2623.72 ▼29.35
Add New Post /wp-admin/post-new.php3.09 ▼2.7930.25 ▼64.57
Media Library /wp-admin/upload.php3.09 ▼0.1326.26 ▼11.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Footer Links Commando
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲6613.46 ▼0.532.06 ▼0.0547.11 ▲2.36
Dashboard /wp-admin2,221 ▲334.89 ▼1.02102.89 ▼15.0638.45 ▼9.22
Posts /wp-admin/edit.php2,101 ▲122.14 ▲0.1734.33 ▼2.7337.35 ▲0.83
Add New Post /wp-admin/post-new.php1,524 ▼917.60 ▼5.44689.49 ▼0.4360.51 ▲4.14
Media Library /wp-admin/upload.php1,403 ▲184.26 ▲0.03103.20 ▲2.5346.95 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(wp-content/plugins/footer-links-commando/oo/Db.php): failed to open stream: No such file or directory in wp-content/plugins/footer-links-commando/oo/FLC.php on line 3
    • > PHP Notice
      Undefined index: edit in wp-content/plugins/footer-links-commando/views/edit-link.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_option() on null in wp-content/plugins/footer-links-commando/views/footer.php:3
    • > PHP Notice
      Undefined index: edit in wp-content/plugins/footer-links-commando/views/edit-section.php on line 2
    • > PHP Notice
      Undefined index: anchor in wp-content/plugins/footer-links-commando/views/add-link.php on line 7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/footer-links-commando/views/add-section.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/footer-links-commando/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_status() in wp-content/plugins/footer-links-commando/views/metabox.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/footer-links-commando/oo/FLCSectionsTable.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/footer-links-commando/oo/FLCLinksTable.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #7 is missing in footer-links-commando/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === footer-links-commando === )
Please take inspiration from this readme.txt

footer-links-commando/footer-links-commando.php 92% from 13 tests

The main PHP file in "Footer Links Commando" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin12,116 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS121642618,139
JavaScript65742662,281
PHP1658661,467
SVG100229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.83
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.23MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) views/images/scribd.png2.85KB0.00KB▼ 100.00%
(invalid) views/images/tumblr.png2.08KB0.00KB▼ 100.00%
views/images/wikispaces.png1.78KB1.08KB▼ 39.20%
(invalid) views/images/stumbleupon.png2.71KB0.00KB▼ 100.00%
views/images/soup.png7.54KB3.89KB▼ 48.45%