100% adminpad

Code Review | AdminPad

WordPress plugin AdminPad scored 100% from 54 tests.

About plugin

  • Plugin page: adminpad
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 5.9.2
  • First release: May 6, 2016
  • Latest release: Mar 13, 2022
  • Number of updates: 20
  • Update frequency: every 106.9 days
  • Top authors: iftekharbhuiyan (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 7,317 total downloads

Benchmarks

Plugin footprint Passed 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: ▼288.96ms] Passed 4 tests

An overview of server-side resources used by AdminPad
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.75 ▲6.16
Dashboard /wp-admin3.45 ▲0.0533.49 ▲1.02
Posts /wp-admin/edit.php3.65 ▲0.0135.46 ▲0.27
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.23 ▼1,158.30
Media Library /wp-admin/upload.php3.30 ▲0.0125.10 ▲1.16

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdminPad
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,089 ▲33520.81 ▲5.166.33 ▲0.132.45 ▼0.39
Dashboard /wp-admin3,219 ▲3689.42 ▲3.22179.02 ▲44.25195.23 ▲36.64
Posts /wp-admin/edit.php2,685 ▼93.24 ▲0.0163.03 ▼1.17143.18 ▼0.42
Add New Post /wp-admin/post-new.php1,773 ▲11321.01 ▲4.68438.96 ▲19.30155.21 ▲0.84
Media Library /wp-admin/upload.php1,698 ▲35.52 ▲0.01130.90 ▼24.52184.04 ▼9.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (The AdminPad)
The official readme.txt is a good inspiration

adminpad/adminpad.php Passed 13 tests

The main file in "AdminPad" v. 1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Simple note taker for WP site administrators only.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP101540

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png2.67KB2.62KB▼ 1.94%