94% wpfooter

Code Review | WPfooter

WordPress plugin WPfooter scored 94% from 54 tests.

About plugin

  • Plugin page: wpfooter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Oct 19, 2016
  • Latest release: Oct 19, 2016
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: mediacambridge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 983 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WPfooter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0135.81 ▲2.99
Dashboard /wp-admin3.07 ▲0.0151.30 ▲17.96
Posts /wp-admin/edit.php3.12 ▲0.0137.13 ▲1.91
Add New Post /wp-admin/post-new.php5.43 ▲0.0093.18 ▼558.40
Media Library /wp-admin/upload.php3.01 ▲0.0034.36 ▼4.92

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WPfooter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.97 ▼0.039.66 ▲0.4441.25 ▼6.27
Dashboard /wp-admin2,987 ▲535.87 ▼0.02135.64 ▼2.93113.18 ▼1.36
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0067.70 ▲5.9188.41 ▼11.41
Add New Post /wp-admin/post-new.php1,511 ▼2,17818.90 ▲3.87381.96 ▼41.72114.29 ▲1.64
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.03155.59 ▲12.83119.68 ▼2.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfooter/wpfooter.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wpfooter === )
The official readme.txt is a good inspiration

wpfooter/wpfooter.php Passed 13 tests

The entry point to "WPfooter" version 1.0.0 is a PHP file that has certain tags in its header comment area
105 characters long description:
This plugin allows you to add tracking pixels, analytics tags and custom code to every page of your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19936

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wpfooter.png5.83KB3.65KB▼ 37.34%