78% custom-admin-panel-by-2cloud

Code Review | Custom Admin Panel by 2Cloud

WordPress plugin Custom Admin Panel by 2Cloud scored78%from 54 tests.

About plugin

  • Plugin page: custom-admin-pane...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2014
  • Latest release: Jul 19, 2014
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: 2cloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.83ms] Passed 4 tests

A check of server-side resources used by Custom Admin Panel by 2Cloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.77 ▲3.48
Dashboard /wp-admin3.39 ▲0.0449.07 ▼10.72
Posts /wp-admin/edit.php3.50 ▲0.1547.81 ▲0.02
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.79 ▼6.18
Media Library /wp-admin/upload.php3.31 ▲0.0836.19 ▲1.56
Admin Panel /wp-admin/admin.php?page=cloud-top-level-handle3.2929.65
Social Media /wp-admin/admin.php?page=social-options3.2938.85
Custom CSS & JS /wp-admin/admin.php?page=custom-options3.2832.57
Logo & Branding /wp-admin/admin.php?page=logo-options3.2831.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_custom_admin
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Admin Panel by 2Cloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.27 ▼0.071.96 ▲0.2642.31 ▼0.58
Dashboard /wp-admin2,223 ▲435.64 ▲0.00102.54 ▲7.6944.78 ▼3.13
Posts /wp-admin/edit.php2,124 ▲272.29 ▲0.3143.86 ▲6.1732.05 ▼4.74
Add New Post /wp-admin/post-new.php1,554 ▲2823.27 ▲0.19608.60 ▼60.6732.56 ▼14.05
Media Library /wp-admin/upload.php1,438 ▲414.18 ▼0.04109.87 ▲10.1940.35 ▼5.00
Admin Panel /wp-admin/admin.php?page=cloud-top-level-handle1,1261.9437.4428.90
Social Media /wp-admin/admin.php?page=social-options1,0381.7829.7234.92
Custom CSS & JS /wp-admin/admin.php?page=custom-options9201.7429.6128.95
Logo & Branding /wp-admin/admin.php?page=logo-options9251.7729.5234.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_custom_admin
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-home.php
    • > /wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-top-menu.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-admin-panel-by-2cloud/2cloud-admin-panel.php:174
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-admin-panel-by-2cloud/inc/social-media-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-custom.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-logo.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-social.php:20

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: social icons, custom css js, admin panel

custom-admin-panel-by-2cloud/2cloud-admin-panel.php 92% from 13 tests

The entry point to "Custom Admin Panel by 2Cloud" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-admin-panel-by-2cloud.php" instead of "2cloud-admin-panel.php")

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
Good job! No executable or dangerous file extensions detected669 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP813854639
CSS112022
JavaScript118278

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.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
14 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/social/rss.png5.81KB2.15KB▼ 62.97%
images/social/android.png5.33KB2.10KB▼ 60.60%
images/social/soundscloud.png5.09KB2.05KB▼ 59.73%
images/social/google+.png5.58KB2.15KB▼ 61.47%
images/social/pinterest.png5.59KB2.19KB▼ 60.89%