Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'AopushAdmin' does not have a method 'aopush_install'
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.83ms] Passed 4 tests
Server-side resources used by АвтоОфис.Пуш push-уведомления на вашем сайте
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.36 ▼8.29 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.45 ▼0.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.59 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.83 ▼0.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.12 ▲2.67 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for АвтоОфис.Пуш push-уведомления на вашем сайте
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.59 ▼0.78 | 1.57 ▼0.70 | 40.83 ▼10.62 |
Dashboard /wp-admin | 2,224 ▲36 | 5.82 ▼0.04 | 113.62 ▲6.79 | 93.72 ▲51.89 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 1.98 ▼0.03 | 38.21 ▼0.61 | 33.72 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 18.33 ▲0.78 | 695.85 ▲30.83 | 65.61 ▲9.59 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.16 ▼0.04 | 100.52 ▼1.30 | 65.90 ▲22.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aopush/views/page/__test.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aopush/views/page/__mailing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/aopush/views/admin_page_push.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aopush/views/page/__help.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/aopush/views/page/__templates.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aopush/views/page/__settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aopush/views/page/__events.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aopush/aopush_plugin.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/aopush/views/page/__history.php:2
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: aopush
aopush/aopush_plugin.php 85% from 13 tests
The entry point to "АвтоОфис.Пуш push-уведомления на вашем сайте" version 1.1.02 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 585 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("aopush.php" instead of "aopush_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,060 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
PHP | 14 | 448 | 179 | 1,969 |
CSS | 5 | 50 | 91 | 1,845 |
PO File | 1 | 100 | 101 | 219 |
JavaScript | 6 | 11 | 29 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 47.33 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 6 | 11.76% |
▷ Public methods | 46 | 90.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.80% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ui/ui-icons_2e83ff_256x240.png | 3.67KB | 4.17KB | 0.00% |
assets/img/icon.png | 0.37KB | 0.42KB | 0.00% |
assets/img/ui/ui-bg_flat_75_ffffff_40x100.png | 0.07KB | 0.08KB | 0.00% |
assets/img/ui/ui-bg_glass_75_e6e6e6_1x400.png | 0.12KB | 0.15KB | 0.00% |
assets/img/logo.png | 1.43KB | 1.44KB | 0.00% |