90% footer-logo

Code Review | Footer Logo

WordPress plugin Footer Logo scored90%from 54 tests.

About plugin

  • Plugin page: footer-logo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8
  • WordPress version: 6.3.1
  • First release: Jul 5, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: D001928403 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,496 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼7.61ms] Passed 4 tests

An overview of server-side resources used by Footer Logo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.77 ▼4.66
Dashboard /wp-admin3.32 ▼0.0349.47 ▼17.91
Posts /wp-admin/edit.php3.37 ▲0.0148.25 ▼4.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.54 ▼3.64
Media Library /wp-admin/upload.php3.24 ▲0.0136.64 ▲0.24

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Footer Logo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6414.24 ▼0.031.95 ▲0.0945.94 ▲0.54
Dashboard /wp-admin2,192 ▲155.65 ▼0.0397.95 ▼4.1242.51 ▼4.11
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0139.82 ▲3.9034.54 ▼5.52
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.20670.27 ▼52.6858.27 ▲3.63
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.1296.56 ▼16.4146.75 ▼3.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot-2.png)
The official readme.txt is a good inspiration

footer-logo/footer-logo.php Passed 13 tests

"Footer Logo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
You can able to manage 1 another logo in your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171033

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png21.70KB12.32KB▼ 43.21%
screenshot-1.png62.96KB11.57KB▼ 81.62%