Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.18ms] Passed 4 tests
Analyzing server-side resources used by Autooffice Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.60 ▼2.32 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.68 ▼0.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.58 ▼6.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.16 ▼7.62 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.28 ▲4.15 |
Code Html /wp-admin/admin.php?page=autooffice-html-code | 3.40 | 39.80 |
Code Js /wp-admin/admin.php?page=autooffice-js-code | 3.40 | 37.52 |
Code Css /wp-admin/admin.php?page=autooffice-css-code | 3.40 | 36.59 |
Settings /wp-admin/admin.php?page=autooffice | 3.45 | 35.21 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_aopf_autooffice_settings |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_aopf_autooffice_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Autooffice Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.58 ▲0.32 | 1.76 ▼0.01 | 43.75 ▼2.78 |
Dashboard /wp-admin | 2,214 ▲37 | 5.55 ▼0.11 | 87.26 ▼12.71 | 84.18 ▲37.70 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.95 ▼0.08 | 36.69 ▼3.80 | 35.03 ▼6.60 |
Add New Post /wp-admin/post-new.php | 1,569 ▲40 | 22.03 ▼1.11 | 671.29 ▲52.51 | 173.42 ▲123.36 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.14 ▼0.05 | 111.32 ▲7.69 | 78.61 ▲32.33 |
Code Html /wp-admin/admin.php?page=autooffice-html-code | 885 | 2.14 | 26.90 | 52.63 |
Code Js /wp-admin/admin.php?page=autooffice-js-code | 867 | 2.14 | 25.52 | 26.30 |
Code Css /wp-admin/admin.php?page=autooffice-css-code | 863 | 2.14 | 27.53 | 29.10 |
Settings /wp-admin/admin.php?page=autooffice | 962 | 2.14 | 28.00 | 33.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_aopf_autooffice_widget
- widget_recent-posts
- widget_recent-comments
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
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+235
Undefined index: stores_name
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+243
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+235
Undefined index: stores_id
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+237
Undefined index: newsletter
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+239
Undefined index: advertising
- > GET request to /wp-admin/admin.php?page=autooffice-html-code
- > Notice in wp-content/plugins/autooffice/includes/AutoofficeModel.php+243
Undefined index: subsform
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/autooffice/views/widget_settings_page.php
- > /wp-content/plugins/autooffice/views/widget_page.php
- > /wp-content/plugins/autooffice/views/widget.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/autooffice/autooffice_plugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/autooffice/includes/AutoofficeWidget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autooffice/views/plugin_settings_page_html.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autooffice/views/settings_page.php:2
- > PHP Notice
Undefined variable: form in wp-content/plugins/autooffice/views/widget.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/autooffice/views/plugin_settings_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autooffice/views/plugin_settings_page_js.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autooffice/views/plugin_settings_page_css.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: autoofficeemail
autooffice/autooffice_plugin.php 85% from 13 tests
Analyzing the main PHP file in "Autooffice Plugin" version 1.0.04
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 477 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("autooffice.php" instead of "autooffice_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,766 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 271 | 153 | 1,272 |
SVG | 1 | 0 | 0 | 288 |
PO File | 2 | 81 | 83 | 200 |
CSS | 2 | 0 | 5 | 4 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 28.60 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 9 | 20.93% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 3 | 6.98% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon_w.png | 0.83KB | 0.89KB | 0.00% |
assets/img/icon.png | 1.62KB | 1.36KB | ▼ 15.54% |
assets/img/icon_d.png | 0.73KB | 0.83KB | 0.00% |