90% reusable-admin-panel

Code Review | Reusable Admin Panel

WordPress plugin Reusable Admin Panel scored90%from 54 tests.

About plugin

  • Plugin page: reusable-admin-panel
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Oct 19, 2023
  • Number of updates: 12
  • Update frequency: every 22.3 days
  • Top authors: polyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼4.62ms] Passed 4 tests

An overview of server-side resources used by Reusable Admin Panel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2037.85 ▼0.56
Dashboard /wp-admin3.51 ▲0.2145.45 ▼4.87
Posts /wp-admin/edit.php3.62 ▲0.2745.91 ▼6.32
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.84 ▼6.42
Media Library /wp-admin/upload.php3.43 ▲0.2031.84 ▼0.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Reusable Admin Panel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.10 ▼0.532.05 ▲0.4444.66 ▲7.98
Dashboard /wp-admin2,195 ▲185.50 ▼0.1079.64 ▼6.0139.25 ▼3.30
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0132.40 ▼2.1535.65 ▼1.58
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▼0.29666.79 ▲2.0466.65 ▲18.53
Media Library /wp-admin/upload.php1,397 ▼34.11 ▼0.0797.28 ▲2.0746.22 ▲3.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: dev tool, developer tool, beautiful admin, plugin panel, reusable admin panel...

reusable-admin-panel/reusable-admin-panel.php Passed 13 tests

Analyzing the main PHP file in "Reusable Admin Panel" version 1.0.5
120 characters long description:
A settings class to help developers easily add beautiful admin pages and handle getting, sanitizing, and saving options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected959 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP194281520
CSS55233230
JavaScript55151209

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity102.00
▷ Minimum class complexity102.00
▷ Maximum class complexity102.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png4.55KB1.71KB▼ 62.38%