Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼181.35ms] Passed 4 tests
Server-side resources used by Anton Extensions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 23.85 ▲2.23 |
Dashboard /wp-admin | 3.10 ▲0.04 | 33.04 ▼5.72 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 34.43 ▲1.32 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 69.01 ▼720.51 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 23.19 ▼0.50 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Anton Extensions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲85 | 15.55 ▼0.03 | 4.90 ▼0.58 | 75.15 ▲0.37 |
Dashboard /wp-admin | 2,950 ▲54 | 6.13 ▼0.01 | 118.24 ▼32.11 | 161.79 ▼20.72 |
Posts /wp-admin/edit.php | 2,761 ▲21 | 3.24 ▲0.02 | 64.28 ▼1.72 | 137.13 ▼6.31 |
Add New Post /wp-admin/post-new.php | 3,711 ▼96 | 18.00 ▼0.07 | 411.48 ▼41.47 | 160.02 ▼0.81 |
Media Library /wp-admin/upload.php | 1,772 ▲20 | 5.43 ▼0.09 | 143.11 ▲2.15 | 184.14 ▲0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/4nton-extensions/lib/core/ajax/single-image-crop.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_field_html() in wp-content/plugins/4nton-extensions/lib/admin/gf-errors.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_field_html() in wp-content/plugins/4nton-extensions/lib/admin/wordpress.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/4nton-extensions/lib/core/features.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/4nton-extensions/lib/admin/gf-activation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_get_styles() in wp-content/plugins/4nton-extensions/lib/templates/wp-login.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_get_option() in wp-content/plugins/4nton-extensions/lib/templates/gf-activation.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_specialchars_decode() in wp-content/plugins/4nton-extensions/lib/admin/wp-mail.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/4nton-extensions/lib/core/ajax/user-avatar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_field_html() in wp-content/plugins/4nton-extensions/lib/admin/wp-login.php:1
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: field, gravityform, ajax, wp-loginphp, anthonycarboncom...
4nton-extensions/anton-extensions.php 77% from 13 tests
This is the main PHP file of "Anton Extensions" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("4nton-extensions.php" instead of "anton-extensions.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,859 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 107 | 65 | 1,814 |
JavaScript | 5 | 9 | 2 | 796 |
SVG | 1 | 0 | 0 | 655 |
CSS | 6 | 1 | 5 | 594 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default.png | 2.48KB | 0.13KB | ▼ 94.56% |
assets/images/edit-image.png | 0.75KB | 0.79KB | 0.00% |
assets/images/i.png | 0.30KB | 0.15KB | ▼ 48.36% |
assets/images/avatar.png | 16.66KB | 8.82KB | ▼ 47.07% |