Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲2.27ms] Passed 4 tests
This is a short check of server-side resources used by Anton Extensions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 45.17 ▲6.14 |
Dashboard /wp-admin | 3.61 ▲0.31 | 56.10 ▲5.01 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 52.99 ▲2.57 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.93 ▼1.78 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 40.33 ▲3.27 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Anton Extensions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 13.93 ▼0.46 | 1.85 ▲0.00 | 44.49 ▲3.85 |
Dashboard /wp-admin | 2,211 ▲30 | 5.52 ▼0.22 | 85.33 ▼14.97 | 39.43 ▼3.14 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.03 | 36.48 ▼3.84 | 33.31 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,564 ▲33 | 22.98 ▼0.09 | 710.88 ▲101.86 | 56.61 ▲9.07 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.21 ▼0.01 | 104.69 ▲1.04 | 44.30 ▼3.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 | 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
- 12× PHP files trigger errors when accessed directly with GET requests (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 wp_enqueue_style() in wp-content/plugins/4nton-extensions/lib/templates/user-avatar.php:5
- > 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 _e() in wp-content/plugins/4nton-extensions/lib/admin/gf-activation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function ae_field_name() in wp-content/plugins/4nton-extensions/lib/admin/settings.php:5
- > 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 wp_specialchars_decode() in wp-content/plugins/4nton-extensions/lib/admin/wp-mail.php:2
- > 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 add_action() in wp-content/plugins/4nton-extensions/lib/core/features.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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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, anthonycarboncom, media-upload, wp-loginphp, gravityform...
4nton-extensions/anton-extensions.php 77% from 13 tests
The main PHP script in "Anton Extensions" version 1.2.2 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 288 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("4nton-extensions.php" instead of "anton-extensions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were 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
There are no cyclomatic complexity problems 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/avatar.png | 16.66KB | 8.82KB | ▼ 47.07% |
assets/images/i.png | 0.30KB | 0.15KB | ▼ 48.36% |
assets/images/edit-image.png | 0.75KB | 0.79KB | 0.00% |