68% wp-admin-booster

Code Review | Wp Admin Booster

WordPress plugin Wp Admin Booster scored68%from 54 tests.

About plugin

  • Plugin page: wp-admin-booster
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.1.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-5.7
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Jul 13, 2021
  • Number of updates: 11
  • Update frequency: every 91.6 days
  • Top authors: ondics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.87MB] [CPU: ▼36.26ms] Passed 4 tests

A check of server-side resources used by Wp Admin Booster
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0727.30 ▼16.48
Dashboard /wp-admin3.08 ▼0.2326.42 ▼25.34
Posts /wp-admin/edit.php3.08 ▼0.2824.28 ▼29.73
Add New Post /wp-admin/post-new.php3.08 ▼2.8122.39 ▼73.48
Media Library /wp-admin/upload.php3.08 ▼0.1526.88 ▼11.45
Einstellungen /wp-admin/admin.php?page=ondics3.0824.27
Ondics /wp-admin/admin.php?page=Ondics-Plugin3.0820.64
Support /wp-admin/admin.php?page=ondics-support3.0825.84
Wordpress-Hilfe /wp-admin/admin.php?page=ondics-dokumentation3.0823.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Admin Booster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13714.41 ▼0.161.78 ▲0.0646.02 ▲1.14
Dashboard /wp-admin2,301 ▲1215.55 ▼0.1199.48 ▲10.5244.60 ▼2.02
Posts /wp-admin/edit.php2,130 ▲301.97 ▼0.0237.58 ▼2.1234.65 ▼1.15
Add New Post /wp-admin/post-new.php1,553 ▲2623.59 ▲0.71688.45 ▲49.4652.43 ▼8.19
Media Library /wp-admin/upload.php1,436 ▲334.11 ▼0.13114.40 ▲14.3948.29 ▲3.52
Einstellungen /wp-admin/admin.php?page=ondics1,0271.9722.4830.38
Ondics /wp-admin/admin.php?page=Ondics-Plugin1,0731.9924.2324.66
Support /wp-admin/admin.php?page=ondics-support8112.0023.2136.81
Wordpress-Hilfe /wp-admin/admin.php?page=ondics-dokumentation9271.9922.2329.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Smoke test failed, please fix the following
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ondics-dokumentation
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Ondics-Plugin
    • > Notice in wp-content/plugins/wp-admin-booster/functions/ondics-functions.php+278
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=ondics
    • > Notice in wp-content/plugins/wp-admin-booster/functions/ondics-functions.php+640
    Undefined index: default

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-admin-booster/wp-admin-booster.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: admin, ondics

wp-admin-booster/wp-admin-booster.php 92% from 13 tests

The primary PHP file in "Wp Admin Booster" version 1.1.3 is used by WordPress to initiate all plugin functionality
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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,531 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP394297900
SVG300603
CSS16428

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions35
▷ Named functions35100.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
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
bilder/ondics_O.png3.11KB1.78KB▼ 42.91%