84% show-theme-in-footer

Code Review | Show Theme in Footer

WordPress plugin Show Theme in Footer scored84%from 54 tests.

About plugin

  • Plugin page: show-theme-in-footer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 18, 2016
  • Latest release: Sep 23, 2023
  • Number of updates: 21
  • Update frequency: every 117.5 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,609 total downloads

Benchmarks

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

This is a short check of server-side resources used by Show Theme in Footer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.26 ▼6.27
Dashboard /wp-admin3.31 ▲0.0148.71 ▲0.92
Posts /wp-admin/edit.php3.36 ▲0.0149.48 ▲0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.98 ▼7.20
Media Library /wp-admin/upload.php3.24 ▲0.0137.09 ▲2.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Show Theme in Footer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.72 ▲0.082.21 ▲0.3642.56 ▼2.83
Dashboard /wp-admin2,201 ▲235.61 ▼0.0384.20 ▼20.3240.55 ▼0.72
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0740.48 ▲3.8835.21 ▼0.81
Add New Post /wp-admin/post-new.php1,534 ▲823.35 ▲0.03686.60 ▼8.6258.38 ▼3.38
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.0798.11 ▼2.2947.63 ▲2.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: footer, parent theme name, theme name, theme version, administration...

show-theme-in-footer/show-theme-in-footer.php Passed 13 tests

The main PHP script in "Show Theme in Footer" version 1.1 is automatically included on every request by WordPress
58 characters long description:
Show the active theme name and version in the Admin Footer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File12223
PHP131221

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected