89% hide-footer-links

Code Review | Hide Footer Links

WordPress plugin Hide Footer Links scored 89% from 54 tests.

About plugin

  • Plugin page: hide-footer-links
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 14, 2016
  • Latest release: Mar 23, 2017
  • Number of updates: 10
  • Update frequency: every 9.6 days
  • Top authors: niteoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 5,863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Hide Footer Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.05 ▼10.98
Dashboard /wp-admin3.31 ▲0.0148.17 ▲0.20
Posts /wp-admin/edit.php3.36 ▲0.0149.62 ▼1.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.01 ▼20.16
Media Library /wp-admin/upload.php3.23 ▲0.0136.11 ▲2.37

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

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

Browser metrics Passed 4 tests

Hide Footer Links: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.69 ▼1.054.48 ▲2.4543.95 ▼1.17
Dashboard /wp-admin2,200 ▲95.83 ▼0.06104.65 ▼3.3239.33 ▼7.59
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0440.00 ▼0.7536.36 ▼1.93
Add New Post /wp-admin/post-new.php1,539 ▲2523.07 ▲5.54650.47 ▼30.0753.26 ▼9.47
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0799.97 ▼11.2245.00 ▼1.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention: Please take inspiration from this readme.txt

hide-footer-links/index.php 92% from 13 tests

Analyzing the main PHP file in "Hide Footer Links" version 1.0.3
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hide-footer-links.php" instead of "index.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
No dangerous file extensions were detected212 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12518212

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin