94% custom-admin-footer-text

Code Review | Custom Admin Footer Text

WordPress plugin Custom Admin Footer Text scored 94% from 54 tests.

About plugin

  • Plugin page: custom-admin-foot...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 5.8.1
  • First release: Apr 18, 2014
  • Latest release: Jan 20, 2015
  • Number of updates: 14
  • Update frequency: every 19.8 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 12,661 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.07MB] [CPU: ▼140.07ms] Passed 4 tests

Server-side resources used by Custom Admin Footer Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0734.82 ▲1.95
Dashboard /wp-admin3.13 ▲0.0746.50 ▲8.59
Posts /wp-admin/edit.php3.22 ▲0.1147.23 ▲3.16
Add New Post /wp-admin/post-new.php5.49 ▲0.0588.69 ▼565.86
Media Library /wp-admin/upload.php3.08 ▲0.0732.90 ▲0.46
Custom Admin Footer Text /wp-admin/options-general.php?page=custom-admin-footer-text3.0528.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
caft

Browser metrics Passed 4 tests

Custom Admin Footer Text: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.97 ▲0.068.21 ▼2.9544.14 ▼3.02
Dashboard /wp-admin2,971 ▲405.95 ▼0.06144.04 ▼2.72110.06 ▼7.25
Posts /wp-admin/edit.php2,744 ▲82.72 ▲0.0161.11 ▼7.1390.15 ▼4.49
Add New Post /wp-admin/post-new.php1,685 ▲18518.87 ▲0.14377.43 ▲1.75105.20 ▼4.08
Media Library /wp-admin/upload.php1,818 ▲85.02 ▼0.02139.89 ▼12.10122.51 ▼2.18
Custom Admin Footer Text /wp-admin/options-general.php?page=custom-admin-footer-text1,1772.0656.9298.47

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/custom-admin-footer-text/custom-admin-footer-text.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: footer, text, admin, client, dev...

custom-admin-footer-text/custom-admin-footer-text.php Passed 13 tests

The entry point to "Custom Admin Footer Text" version 0.1.1 is a PHP file that has certain tags in its header comment area
48 characters long description:
Change the admin footer to your own custom text.

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 plugin252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31336247
CSS1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bottom.png1.54KB1.48KB▼ 4.18%
images/settings.png2.11KB2.31KB0.00%
images/support.png5.03KB2.79KB▼ 44.54%