10% wp-admin-style

Code Review | WP Admin Style

WordPress plugin WP Admin Style scored 10% from 54 tests.

About plugin

  • Plugin page: wp-admin-style
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0
  • WordPress version: 5.9.2
  • First release: Jan 30, 2017
  • Latest release: Jan 19, 2019
  • Number of updates: 22
  • Update frequency: every 32.6 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,261 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-admin-style/wp-admin-style.php+20
    Undefined variable: wpdb

Server metrics [RAM: ▼0.36MB] [CPU: ▼312.85ms] Passed 4 tests

An overview of server-side resources used by WP Admin Style
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0559.75 ▲5.81
Dashboard /wp-admin3.24 ▼0.1723.14 ▼9.83
Posts /wp-admin/edit.php3.30 ▼0.3426.05 ▼17.14
Add New Post /wp-admin/post-new.php6.09 ▼0.8874.77 ▼1,216.78
Media Library /wp-admin/upload.php3.26 ▼0.0320.72 ▼7.63
Yummi Plugins /wp-admin/admin.php?page=yummi3.2321.23
Admin Style /wp-admin/admin.php?page=wpas3.2320.95

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Admin Style: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲7516.14 ▲0.736.07 ▼7.122.12 ▼0.96
Dashboard /wp-admin2,922 ▲616.10 ▼0.07118.21 ▼20.87192.60 ▼46.08
Posts /wp-admin/edit.php2,723 ▲353.24 ▲0.00111.35 ▲43.08163.44 ▼51.33
Add New Post /wp-admin/post-new.php1,784 ▲12322.07 ▲3.40418.55 ▲14.31180.04 ▼4.68
Media Library /wp-admin/upload.php1,721 ▲235.54 ▲0.09167.89 ▲34.06212.27 ▲20.94
Yummi Plugins /wp-admin/admin.php?page=yummi2,5018.40237.50231.01
Admin Style /wp-admin/admin.php?page=wpas1,1282.4055.91175.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% 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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpas
    • > Notice in wp-content/plugins/wp-admin-style/wp-admin-style.php+61
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Notice in wp-content/plugins/wp-admin-style/includes/yummi-plugins.php+117
    Undefined variable: tab
    • > GET request to /wp-admin/admin.php?page=wpas
    • > Notice in wp-content/plugins/wp-admin-style/includes/admin.php+53
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=wpas
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=wpas
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-style/includes/admin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-admin-style/includes/yummi-plugins.php:5
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
    • > PHP Warning
      include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-admin-style/wp-admin-style.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Network (severe)
    https://www.paypalobjects.com/en_IT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can look at the official readme.txt

wp-admin-style/wp-admin-style.php 85% from 13 tests

"WP Admin Style" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • 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
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin816 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS45024553
PHP37677263

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/dashicons-yummi.png1.81KB0.85KB▼ 52.89%