10% dynast-admin-panel

Code Review | dynast admin panel

WordPress plugin dynast admin panel scored10%from 54 tests.

About plugin

  • Plugin page: dynast-admin-panel
  • Plugin version: 0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Nov 26, 2018
  • Number of updates: 11
  • Update frequency: every 8.2 days
  • Top authors: goniusman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /741 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/dynast-admin-panel/inc/assets/support.php+10
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.83MB] [CPU: ▼54.92ms] Passed 4 tests

A check of server-side resources used by dynast admin panel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.305.49 ▼37.02
Dashboard /wp-admin2.19 ▼1.166.68 ▼56.77
Posts /wp-admin/edit.php2.19 ▼1.179.22 ▼33.24
Add New Post /wp-admin/post-new.php2.19 ▼3.707.50 ▼92.66
Media Library /wp-admin/upload.php2.19 ▼1.046.95 ▼30.09
Contact Form /wp-admin/admin.php?page=contact_form_select_page2.197.42
Add Support /wp-admin/admin.php?page=theme_support_option2.197.60
Admin panel /wp-admin/admin.php?page=admin_page_option2.196.71
Css Editor /wp-admin/admin.php?page=admin_css_editor2.197.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 388 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_dynast_admin_widget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by dynast admin panel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,199 ▲45316.49 ▲2.126.01 ▲4.2341.80 ▼2.67
Dashboard /wp-admin2,500 ▲3186.53 ▲0.66151.11 ▲48.0141.96 ▲3.66
Posts /wp-admin/edit.php2,375 ▲2864.07 ▲2.0762.46 ▲21.7034.96 ▼3.72
Add New Post /wp-admin/post-new.php1,744 ▲21318.09 ▼0.18598.98 ▼15.2434.54 ▼16.99
Media Library /wp-admin/upload.php1,504 ▲1165.27 ▲1.0387.78 ▼7.1941.99 ▼0.56
Contact Form /wp-admin/admin.php?page=contact_form_select_page1,1313.8049.8031.66
Add Support /wp-admin/admin.php?page=theme_support_option1,2833.9351.8035.44
Admin panel /wp-admin/admin.php?page=admin_page_option1,2583.8344.9431.51
Css Editor /wp-admin/admin.php?page=admin_css_editor1,1774.4261.3456.45

Uninstaller [IO: ▲9.21MB] [DB: ▲0.00MB] 25% 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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/dynast-admin-panel/inc/assets/support.php+10
    Trying to access array offset on value of type bool
  • This plugin has failed uninstalling correctly, leaving 388 files (9.21MB) in the plugin directory
    • (new file) assets/css/front-admin.css
    • (new file) assets/fonts/Flaticond41d.eot
    • (new file) assets/fonts/Linearicons-Free54e9.eot
    • (new file) assets/fonts/Flaticon.eot
    • (new file) assets/css/index.html
    • (new file) assets/fonts/Flaticon.woff
    • (new file) assets/fonts/Flaticon.ttf
    • (new file) assets/fonts/Flaticon.svg
    • (new file) assets/css/font-awesome.min.css
    • (new file) assets/css/admin.css
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_dynast_admin_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 45 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin_css_editor
    • > Notice in wp-content/plugins/dynast-admin-panel/inc/assets/support.php+10
    Trying to access array offset on value of type bool

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dynast-admin-panel/dynast-admin-panel.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/dynast-admin-panel/inc/assets/form.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynast-admin-panel/inc/assets/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynast-admin-panel/inc/assets/dynast-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dynast-admin-panel/inc/assets/support.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynast-admin-panel/inc/assets/ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/dynast-admin-panel/inc/assets/admintemplate/contactform.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/dynast-admin-panel/inc/assets/admintemplate/support.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/dynast-admin-panel/inc/assets/admintemplate/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/dynast-admin-panel/inc/assets/admintemplate/css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dynast-admin-panel/inc/assets/contact-form.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin_page_option
    • > Javascript (severe) in unknown
    /wp-content/plugins/dynast-admin-panel/assets/js/ace/ace.js?ver=v1.0 0:346182 Uncaught Error: ace.edit can't find div #customCSS
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin_css_editor
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/dynast-admin-panel/assets/js/admin.js?ver=v1.1:6:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin_css_editor
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (It's theme support section in this page your can control theme support to screenshot-1.png), #2 (Please check this box and get a sortcode to use where you like to show to screenshot-2.png), #3 (Hey guy awesome section you will see like your own css editor just use to screenshot-3.png)
Please take inspiration from this readme.txt

dynast-admin-panel/dynast-admin-panel.php 92% from 13 tests

The main file in "dynast admin panel" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,650 lines of code in 351 files:
LanguageFilesBlank linesComment linesLines of code
SVG7066,234
PHP1323086693
JavaScript327934537
CSS3313184
HTML1002

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.13
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions4397.73%
▷ Anonymous functions12.27%
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
No PNG images were found in this plugin