78% wp-admin-style-ui

Code Review | WP Admin Style UI

WordPress plugin WP Admin Style UI scored 78% from 54 tests.

About plugin

  • Plugin page: wp-admin-style-ui
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 25, 2017
  • Latest release: Apr 6, 2017
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: iiandrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 476 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
Install script ran successfully

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

A check of server-side resources used by WP Admin Style UI
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.28 ▼4.67
Dashboard /wp-admin3.38 ▲0.0847.39 ▼4.31
Posts /wp-admin/edit.php3.50 ▲0.1449.11 ▲1.03
Add New Post /wp-admin/post-new.php5.98 ▲0.1095.70 ▲2.22
Media Library /wp-admin/upload.php3.31 ▲0.0834.27 ▲0.42
Accordions /wp-admin/admin.php?page=wpasui_native-accordions3.3131.31
Botões /wp-admin/admin.php?page=wpasui_native-buttons3.3631.20
Apresentação /wp-admin/admin.php?page=wp-admin-style-ui3.32143.03

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Admin Style UI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11414.51 ▲0.211.75 ▼0.3438.08 ▼4.28
Dashboard /wp-admin2,246 ▲586.16 ▲1.30118.15 ▲3.8044.22 ▼3.21
Posts /wp-admin/edit.php2,141 ▲492.99 ▲0.9745.72 ▲9.6938.35 ▲6.80
Add New Post /wp-admin/post-new.php1,557 ▲2423.81 ▲0.84685.54 ▲34.0736.03 ▼26.61
Media Library /wp-admin/upload.php1,437 ▲525.39 ▲1.17102.84 ▲4.3741.94 ▼2.81
Accordions /wp-admin/admin.php?page=wpasui_native-accordions1,6143.5664.1556.50
Botões /wp-admin/admin.php?page=wpasui_native-buttons1,2962.6632.3432.57
Apresentação /wp-admin/admin.php?page=wp-admin-style-ui9592.7632.0639.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-admin-style-ui/includes/elements/templates/element-accordion.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/wp-admin-style-ui/includes/elements/templates/element-accordion.php on line 8
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/wp-admin-style-ui/includes/elements/templates/element-accordion.php on line 4
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/wp-admin-style-ui/includes/elements/templates/element-accordion.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wp-admin-style-ui/includes/elements/views/buttons-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wp-admin-style-ui/includes/pages/views/admin-page-main.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wp-admin-style-ui/includes/elements/views/accordions-html.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

wp-admin-style-ui/wp-admin-style-ui.php 92% from 13 tests

The main PHP file in "WP Admin Style UI" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 239 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,762 lines of code in 366 files:
LanguageFilesBlank linesComment linesLines of code
PHP132503371,025
JavaScript3513325448
PO File16594273
CSS11016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes116.67%
Methods37
▷ Static methods12.70%
▷ Public methods2567.57%
▷ Protected methods00.00%
▷ Private methods1232.43%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin