Benchmarks
Plugin footprint 83% 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.60MB] [CPU: ▼291.60ms] Passed 4 tests
This is a short check of server-side resources used by Administrator Z
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.37 | 64.54 ▲10.14 |
Dashboard /wp-admin | 4.86 ▲1.45 | 52.03 ▲11.79 |
Posts /wp-admin/edit.php | 5.09 ▲1.45 | 55.32 ▲9.78 |
Add New Post /wp-admin/post-new.php | 5.10 ▼1.87 | 61.81 ▼1,198.10 |
Media Library /wp-admin/upload.php | 4.81 ▲1.50 | 72.13 ▲39.96 |
Administrator Z /wp-admin/tools.php?page=adminz | 7.43 | 65.85 |
Server storage [IO: ▲17.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,771 new files
Database: no new tables, 8 new options
New WordPress options |
---|
adminz_flatsome |
adminz_default |
adminz_enqueue |
adminz_woocommerce |
adminz_db_version |
adminz_security |
adminz_contactgroup |
adminz_mailer |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Administrator Z
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,963 ▲221 | 17.34 ▲1.69 | 6.17 ▲0.36 | 2.69 ▲0.74 |
Dashboard /wp-admin | 3,092 ▲231 | 8.00 ▲1.85 | 137.69 ▲1.70 | 154.98 ▼8.78 |
Posts /wp-admin/edit.php | 2,920 ▲232 | 5.16 ▲1.92 | 76.16 ▲13.34 | 140.31 ▼5.96 |
Add New Post /wp-admin/post-new.php | 4,044 ▲2,284 | 9.67 ▼12.73 | 187.80 ▼237.23 | 203.39 ▲53.49 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.51 ▼0.01 | 108.07 ▼27.71 | 181.83 ▼12.08 |
Administrator Z /wp-admin/tools.php?page=adminz | 1,916 | 4.27 | 68.64 | 170.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- adminz_default
- adminz_db_version
- adminz_contactgroup
- adminz_woocommerce
- adminz_mailer
- adminz_enqueue
- adminz_security
- adminz_flatsome
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/administrator-z/shortcodes/woocommerce-form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/administrator-z/shortcodes/flatsome-readmore-readless.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/administrator-z/shortcodes/flatsome-facebookpage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/administrator-z/shortcodes/flatsome-slider-new.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/administrator-z/shortcodes/woocommerce-quick-order.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/administrator-z/inc/widget/class-adminz-inc-widget-filter-product-taxonomy.php:10
- > PHP Fatal error
Uncaught Error: Class 'Adminz\\Admin\\Adminz' not found in wp-content/plugins/administrator-z/admin/class-adminz-othertools.php:3
- > PHP Fatal error
Uncaught Error: Class 'Adminz\\Admin\\ADMINZ_DefaultOptions' not found in wp-content/plugins/administrator-z/shortcodes/otheroptions-countview.php:5
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/administrator-z/shortcodes/elementor-posts.php:16
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/administrator-z/shortcodes/elementor-test.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in administrator-z/assets to your readme.txt
administrator-z/administrator-z.php 92% from 13 tests
The main PHP script in "Administrator Z" version 2.7.14 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin77,794 lines of code in 1,725 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1,639 | 396 | 1,140 | 24,868 |
HTML | 3 | 2,102 | 1 | 17,774 |
PHP | 58 | 1,331 | 1,578 | 17,312 |
JavaScript | 9 | 5,136 | 6,970 | 17,111 |
CSS | 16 | 95 | 46 | 729 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 43.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 55 | 20.22% |
▷ Public methods | 258 | 94.85% |
▷ Protected methods | 9 | 3.31% |
▷ Private methods | 5 | 1.84% |
Functions | 154 | |
▷ Named functions | 50 | 32.47% |
▷ Anonymous functions | 104 | 67.53% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/fotorama/fotorama.png | 3.15KB | 3.22KB | 0.00% |
assets/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |