Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/stickyadmin/lib/stickyadmin.class.php+1037
Use of undefined constant STICKY_CACHE_URI - assumed 'STICKY_CACHE_URI' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲2.97MB] [CPU: ▼157.77ms] Passed 4 tests
A check of server-side resources used by StickyAdmin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲2.57 | 78.82 ▲53.76 |
Dashboard /wp-admin | 6.34 ▲3.29 | 73.63 ▲20.55 |
Posts /wp-admin/edit.php | 6.46 ▲3.35 | 72.90 ▲26.17 |
Add New Post /wp-admin/post-new.php | 8.10 ▲2.67 | 126.16 ▼711.81 |
Media Library /wp-admin/upload.php | 6.40 ▲3.40 | 72.66 ▲34.02 |
Sticky Admin /wp-admin/options-general.php?page=options-general.php_sticky_admin | 6.32 | 63.87 |
Server storage [IO: ▲24.39MB] [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: 457 new files
Database: 7 new tables, 1 new option
New tables |
---|
wp_sticky_stats_browsers |
wp_sticky_stats_referers |
wp_sticky_stats_visits |
wp_sticky_stats_os |
wp_sticky_stats_posts |
wp_sticky_stats_pageviews |
wp_sticky_stats_searches |
New WordPress options |
---|
sticky_stats_internal |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StickyAdmin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,678 ▲1,082 | 19.31 ▲3.65 | 40.17 ▲29.61 | 152.30 ▲101.36 |
Dashboard /wp-admin | 3,753 ▲827 | 11.74 ▲5.81 | 283.33 ▲125.04 | 196.66 ▲76.63 |
Posts /wp-admin/edit.php | 2,971 ▲232 | 3.98 ▲1.26 | 122.25 ▲46.21 | 166.03 ▲70.61 |
Add New Post /wp-admin/post-new.php | 4,194 ▲2,579 | 19.79 ▼1.56 | 623.01 ▲281.01 | 185.13 ▲50.55 |
Media Library /wp-admin/upload.php | 2,365 ▲558 | 7.05 ▲2.02 | 213.77 ▲48.39 | 129.30 ▼7.70 |
Sticky Admin /wp-admin/options-general.php?page=options-general.php_sticky_admin | 5,199 | 5.52 | 511.75 | 252.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_sticky_stats_browsers
- wp_sticky_stats_os
- wp_sticky_stats_searches
- wp_sticky_stats_referers
- wp_sticky_stats_visits
- wp_sticky_stats_pageviews
- wp_sticky_stats_posts
- The uninstall procedure has failed, leaving 1 option in the database
- sticky_stats_internal
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=options-general.php_sticky_admin
- > Deprecated in wp-content/plugins/stickyadmin/lib/includes/sticky_functions.php+36
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=options-general.php_sticky_admin
- > POST request to /wp-admin/admin-ajax.php
- > Error in wp-content/plugins/stickyadmin/lib/classes/sticky-stats.php+601
Uncaught Error: Class 'Reader' not found in wp-content/plugins/stickyadmin/lib/classes/sticky-stats.php:601
Stack trace:
#0 wp-content/plugins/stickyadmin/lib/classes/sticky-stats.php(211): StickyStats::get_country()
#1 wp-content/plugins/stickyadmin/lib/classes/sticky-stats.php(174): StickyStats::get_visitor_data()
#2 wp-includes/class-wp-hook.php(303): StickyStats::sticky_stats_track()
#3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(470): WP_Hook->do_action()
#5 wp-admin/admin-ajax.php(187): do_action()
#6 {main}
thrown
SRP 50% 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 fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'StickyAdmin' not found in wp-content/plugins/stickyadmin/lib/includes/sticky_body_class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sticky_icons() in wp-content/plugins/stickyadmin/lib/includes/sticky_ajax_css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/stickyadmin/lib/sticky_options.php:15
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/stickyadmin/lib/sticky_options.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'StickyAdmin' not found in wp-content/plugins/stickyadmin/lib/classes/sticky-stats.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=options-general.php_sticky_admin
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/options-general.php?page=options-general.php_sticky_admin
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at apc_init (/wp-content/plugins/stickyadmin/lib/classes/admin-page-class/js/Admin_Page_Class.js:251:34)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/stickyadmin/lib/classes/admin-page-class/js/Admin_Page_Class.js:21:5)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=options-general.php_sticky_admin
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
stickyadmin/index.php 92% from 13 tests
The main PHP script in "StickyAdmin" version 1.0.6 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stickyadmin.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected180,461 lines of code in 350 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 249 | 3,354 | 2,894 | 60,128 |
SVG | 18 | 0 | 2 | 52,810 |
JavaScript | 44 | 4,549 | 4,267 | 34,628 |
HTML | 10 | 3,969 | 2 | 21,923 |
PHP | 22 | 1,321 | 4,422 | 9,334 |
PO File | 5 | 633 | 731 | 1,565 |
Markdown | 1 | 22 | 0 | 38 |
JSON | 1 | 0 | 0 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 113.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 395.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 400 | |
▷ Static methods | 129 | 32.25% |
▷ Public methods | 300 | 75.00% |
▷ Protected methods | 73 | 18.25% |
▷ Private methods | 27 | 6.75% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 52 | |
▷ Global constants | 39 | 75.00% |
▷ Class constants | 13 | 25.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/assets/sticky-logo-114.png | 7.67KB | 2.75KB | ▼ 64.16% |
lib/classes/admin-page-class/css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/images/w-logo-white.png | 4.06KB | 4.07KB | 0.00% |
lib/css/images/input-checked.png | 0.31KB | 0.32KB | 0.00% |
lib/classes/admin-page-class/css/images/ui-bg_inset-soft_95_fef1ec_1x100.png | 0.12KB | 0.16KB | 0.00% |