Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲2.46ms] Passed 4 tests
Server-side resources used by AvangPress for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 50.47 ▼1.06 |
Dashboard /wp-admin | 4.05 ▲0.74 | 59.50 ▲4.71 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 58.51 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 103.21 ▲6.86 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 45.81 ▲7.95 |
Form /wp-admin/admin.php?page=avangpress-forms | 3.82 | 34.50 |
Other /wp-admin/admin.php?page=avangpress-other | 3.99 | 43.55 |
AvangPress /wp-admin/admin.php?page=avangpress | 3.95 | 38.22 |
Integrations /wp-admin/admin.php?page=avangpress-integrations | 4.02 | 44.99 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 186 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_avangpress_form_widget |
widget_recent-comments |
avangpress |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by AvangPress for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.25 ▼0.19 | 1.74 ▲0.08 | 44.02 ▲2.04 |
Dashboard /wp-admin | 2,217 ▲40 | 5.57 ▼0.09 | 91.99 ▼11.47 | 76.93 ▲35.74 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.98 ▼0.02 | 41.81 ▲0.34 | 33.85 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.24 ▼0.33 | 685.98 ▼12.57 | 59.29 ▲2.43 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.14 ▼0.08 | 108.91 ▲2.63 | 68.37 ▲21.15 |
Form /wp-admin/admin.php?page=avangpress-forms | 895 | 1.86 | 40.59 | 51.49 |
Other /wp-admin/admin.php?page=avangpress-other | 998 | 1.94 | 28.36 | 46.28 |
AvangPress /wp-admin/admin.php?page=avangpress | 938 | 1.73 | 24.85 | 36.57 |
Integrations /wp-admin/admin.php?page=avangpress-integrations | 1,106 | 1.85 | 26.30 | 31.67 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- avangpress
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_avangpress_form_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
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
- 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AvangEmailApi_Base' not found in wp-content/plugins/avangpress/includes/api/vendor/avangdev/avang-php/AvangEmailApi/Cache/Abstract.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/avangpress/includes/forms/views/tabs/form-appearance.php:3
- > PHP Fatal error
Uncaught Error: Class 'AvangEmailApi_Base' not found in wp-content/plugins/avangpress/includes/api/vendor/avangdev/avang-php/AvangEmailApi/Endpoint/ListSegments.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function avangpress_register_integration() in wp-content/plugins/avangpress/integrations/wpforms/bootstrap.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/avangpress/integrations/ninja-forms-2/admin-before.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/avangpress/includes/views/parts/lists-overview.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/avangpress/integrations/ninja-forms/admin-before.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function avangpress_register_integration() in wp-content/plugins/avangpress/integrations/ninja-forms/bootstrap.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/avangpress/integrations/gravity-forms/admin-before.php:2
- > PHP Fatal error
Uncaught Error: Class 'Avangpress_API_Exception' not found in wp-content/plugins/avangpress/includes/api/class-connection-exception.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=avangpress-integrations
- > Network (severe)
wp-content/plugins/avangpress/assets/js/integrations-admin.min.js?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Create api key on avangemail), #2 (Config plugin)
avangpress/avangpress.php Passed 13 tests
"AvangPress for WordPress" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
AvangPress WordPress plugin by mehrdad seifzadeh.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected37,932 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,877 | 4,645 | 26,690 |
PHP | 146 | 2,883 | 6,690 | 9,386 |
CSS | 9 | 154 | 70 | 1,728 |
JSON | 3 | 0 | 0 | 57 |
XML | 1 | 2 | 0 | 43 |
Markdown | 1 | 14 | 0 | 20 |
HTML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 3 | 3.19% |
▷ Concrete classes | 91 | 96.81% |
▷ Final classes | 1 | 1.10% |
Methods | 661 | |
▷ Static methods | 31 | 4.69% |
▷ Public methods | 595 | 90.02% |
▷ Protected methods | 47 | 7.11% |
▷ Private methods | 19 | 2.87% |
Functions | 54 | |
▷ Named functions | 51 | 94.44% |
▷ Anonymous functions | 3 | 5.56% |
Constants | 22 | |
▷ Global constants | 4 | 18.18% |
▷ Class constants | 18 | 81.82% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 1.90KB | 1.53KB | ▼ 19.39% |
assets/img/logo.png | 1.26KB | 1.24KB | ▼ 2.24% |
assets/img/logoavang.png | 6.70KB | 3.49KB | ▼ 47.96% |