84% personal-admin-footer

Code Review | Personal Admin Footer

WordPress plugin Personal Admin Footer scored84%from 54 tests.

About plugin

  • Plugin page: personal-admin-fo...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.6
  • WordPress version: 6.3.1
  • First release: Feb 17, 2013
  • Latest release: Dec 1, 2020
  • Number of updates: 20
  • Update frequency: every 142.2 days
  • Top authors: bungeshea (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /11,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Personal Admin Footer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.96 ▼6.43
Dashboard /wp-admin3.32 ▼0.0247.62 ▼17.32
Posts /wp-admin/edit.php3.37 ▲0.0251.75 ▲6.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.50 ▼6.22
Media Library /wp-admin/upload.php3.25 ▲0.0233.40 ▼1.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: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Personal Admin Footer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.191.67 ▼0.4339.29 ▼3.26
Dashboard /wp-admin2,209 ▲215.89 ▲1.01105.83 ▼7.6841.72 ▼6.48
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0240.07 ▲3.4136.60 ▼11.00
Add New Post /wp-admin/post-new.php1,533 ▼023.34 ▲0.04605.70 ▼71.3350.34 ▼7.65
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0194.19 ▼10.1540.95 ▼1.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/personal-admin-footer/personal-admin-footer.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: footer, dashboard, admin

personal-admin-footer/personal-admin-footer.php 92% from 13 tests

This is the main PHP file of "Personal Admin Footer" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2141863
PHP1174751

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.12KB22.19KB▼ 61.15%