10% wp-admin-view

Code Review | WP Admin View

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

About plugin

  • Plugin page: wp-admin-view
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Jul 5, 2018
  • Latest release: Jul 5, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: krishjohnson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 336 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-admin-view/includes/wpav.class.php+35
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲1.82MB] [CPU: ▼130.09ms] Passed 4 tests

An overview of server-side resources used by WP Admin View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.66 ▲1.8242.86 ▲9.41
Dashboard /wp-admin4.91 ▲1.8656.55 ▲12.57
Posts /wp-admin/edit.php4.97 ▲1.8752.25 ▲8.10
Add New Post /wp-admin/post-new.php7.18 ▲1.7598.66 ▼546.42
Media Library /wp-admin/upload.php4.86 ▲1.8642.14 ▲8.54
WP Admin View /wp-admin/admin.php?page=wpav-options4.9745.16
Import Themes /wp-admin/admin.php?page=wpav_themes4.8436.12
Import-Export Settings /wp-admin/admin.php?page=wpav_impexp_settings4.8432.69
Manage Admin menu /wp-admin/admin.php?page=admin_menu_management4.8436.03

Server storage [IO: ▲2.57MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 3 new options
New WordPress options
wpav_options
wpav_adminbar_list
wpav_widgets_list

Browser metrics Passed 4 tests

Checking browser requirements for WP Admin View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,931 ▲33515.86 ▼0.048.20 ▼0.4259.86 ▲11.55
Dashboard /wp-admin3,080 ▲1495.89 ▼0.05132.14 ▼12.54125.46 ▲13.59
Posts /wp-admin/edit.php2,861 ▲1222.69 ▲0.0165.78 ▼3.3875.51 ▼10.06
Add New Post /wp-admin/post-new.php1,523 ▲2318.39 ▼0.19365.63 ▲1.92113.82 ▲8.87
Media Library /wp-admin/upload.php1,936 ▲1295.01 ▲0.00133.18 ▼29.02127.90 ▲14.05
WP Admin View /wp-admin/admin.php?page=wpav-options16,80917.61637.32111.02
Import Themes /wp-admin/admin.php?page=wpav_themes2,0592.1055.7554.40
Import-Export Settings /wp-admin/admin.php?page=wpav_impexp_settings1,2202.0954.4957.29
Manage Admin menu /wp-admin/admin.php?page=admin_menu_management7,6522.9589.3965.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 3 options in the database
    • wpav_options
    • wpav_adminbar_list
    • wpav_widgets_list

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin_menu_management
    • > Notice in wp-content/plugins/wp-admin-view/includes/wpavmenu.class.php+537
    Undefined offset: 1

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-view/assets/css/wpav.css.php:344
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-admin-view/includes/acmee-framework/acmee-framework.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-view/assets/css/wpav.login.css.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-admin-view/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: wp admin design, wp admin view, wp admin dashboard, wp admin, wp admin look...

wp-admin-view/index.php 92% from 13 tests

The primary PHP file in "WP Admin View" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-admin-view.php" instead of "index.php")

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
There were no executable files found in this plugin15,920 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP145883315,416
CSS71131954,363
PO File59391,0042,064
JavaScript675511,266
Sass1319221,158
LESS1319311,149
SVG100504

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity78.71
▷ Minimum class complexity1.00
▷ Maximum class complexity216.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods117
▷ Static methods00.00%
▷ Public methods117100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.61MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wp-admin-view.png9.39KB4.26KB▼ 54.63%
assets/images/wpav.png1.47KB1.16KB▼ 21.16%
assets/images/login-sprite.png0.62KB0.65KB0.00%
assets/screenshot-4.png68.16KB21.89KB▼ 67.88%
assets/screenshot-5.png68.65KB22.21KB▼ 67.64%