Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by AJAX Loading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.64 ▼0.21 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.42 ▼10.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.80 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.79 ▼14.17 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.67 ▼0.49 |
AJAX Loading /wp-admin/options-general.php?page=wp-ajax-loading-admin | 3.22 | 30.10 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
_wp_ajax_loading |
widget_theysaidso_widget |
widget_recent-comments |
wp-ajax-loading |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by AJAX Loading
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.06 ▼0.59 | 11.81 ▲10.09 | 42.40 ▲2.54 |
Dashboard /wp-admin | 2,212 ▲24 | 5.90 ▲1.02 | 113.11 ▲10.50 | 43.29 ▼1.88 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▼0.08 | 36.01 ▲0.50 | 32.99 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.28 ▲0.33 | 656.16 ▼34.52 | 48.82 ▼6.14 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.00 | 96.38 ▼7.34 | 43.56 ▼1.09 |
AJAX Loading /wp-admin/options-general.php?page=wp-ajax-loading-admin | 849 | 2.05 | 23.13 | 43.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- _wp_ajax_loading
- widget_recent-posts
- wp-ajax-loading
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ajax-loading-admin
- > Notice in wp-content/plugins/ajax-loading/admin/class-wp-ajax-loading-admin.php+83
Undefined index: con
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: loading, website, ajax
ajax-loading/ajax-loading.php 92% from 13 tests
Analyzing the main PHP file in "AJAX Loading" version 0.2
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin325 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 83 | 302 |
SVG | 2 | 0 | 1 | 21 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview 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.27 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/upi.png | 78.57KB | 29.46KB | ▼ 62.51% |
admin/assets/img/paytm.png | 44.70KB | 21.35KB | ▼ 52.23% |
admin/assets/img/sbi.png | 19.66KB | 9.76KB | ▼ 50.34% |
admin/assets/img/qr.png | 14.84KB | 7.15KB | ▼ 51.81% |
admin/assets/img/paypral.png | 24.14KB | 23.87KB | ▼ 1.11% |