Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼0.99ms] Passed 4 tests
Server-side resources used by Tori Ajax
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 44.69 ▲1.06 |
Dashboard /wp-admin | 3.90 ▲0.59 | 52.73 ▼1.13 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 50.03 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 95.44 ▼2.05 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 44.25 ▲9.59 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.02 | 42.85 |
Server storage [IO: ▲3.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 200 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
can_compress_scripts |
fs_active_plugins |
db_upgraded |
widget_recent-posts |
fs_gdpr |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
fs_debug_mode |
Browser metrics Passed 4 tests
Tori Ajax: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.74 ▲0.18 | 1.71 ▼0.03 | 32.01 ▼10.04 |
Dashboard /wp-admin | 2,223 ▲49 | 5.53 ▼0.04 | 85.80 ▼10.20 | 42.89 ▼3.32 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.04 ▲0.02 | 36.89 ▼2.53 | 32.86 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,543 ▲3 | 23.72 ▲0.37 | 688.13 ▲47.02 | 52.98 ▲2.74 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.15 ▼0.13 | 111.86 ▲3.55 | 49.75 ▲1.24 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,096 | 1.71 | 31.16 | 30.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/tori-ajax/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- fs_gdpr
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: tori_ajax, toria_add_ajax, javascript, ajax, wordpress
tori-ajax/toria.php 85% from 13 tests
"Tori Ajax" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tori-ajax.php" instead of "toria.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin33,926 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,118 | 18,016 | 33,478 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
Sass | 1 | 1 | 2 | 26 |
CSS | 14 | 0 | 0 | 14 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 79.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,298 | |
▷ Static methods | 195 | 15.02% |
▷ Public methods | 908 | 69.95% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 373 | 28.74% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/toria-edit-Ajax.png | 64.38KB | 27.60KB | ▼ 57.13% |
assets/screenshot-1.png | 16.67KB | 7.03KB | ▼ 57.85% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/screenshot-2.png | 23.92KB | 9.06KB | ▼ 62.14% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |