90% adminpad

Code Review | AdminPad

WordPress plugin AdminPad scored90%from 54 tests.

About plugin

  • Plugin page: adminpad
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 6, 2016
  • Latest release: Aug 2, 2023
  • Number of updates: 26
  • Update frequency: every 101.7 days
  • Top authors: iftekharbhuiyan (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.13ms] Passed 4 tests

Server-side resources used by AdminPad
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.49 ▼1.24
Dashboard /wp-admin3.37 ▲0.0649.13 ▲0.12
Posts /wp-admin/edit.php3.36 ▲0.0045.78 ▼1.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.56 ▲2.01
Media Library /wp-admin/upload.php3.23 ▲0.0040.08 ▲5.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

AdminPad: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,326 ▲56919.94 ▲5.5364.67 ▲62.6663.42 ▲23.92
Dashboard /wp-admin2,733 ▲5419.92 ▲4.97215.68 ▲97.2065.74 ▲23.63
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.86 ▲4.6233.53 ▼0.43
Add New Post /wp-admin/post-new.php1,519 ▼2622.93 ▼0.35609.06 ▼68.8935.21 ▼20.97
Media Library /wp-admin/upload.php1,385 ▼34.19 ▲0.0296.60 ▼11.6941.19 ▼5.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The AdminPad) image required
Please take inspiration from this readme.txt

adminpad/adminpad.php Passed 13 tests

"AdminPad" version 2.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP101652

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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

PNG files should be compressed to save space and 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%