Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.00ms] Passed 4 tests
Analyzing server-side resources used by Auto Refresh API AJAX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.19 ▼6.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.90 ▼1.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.99 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.97 ▼20.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.89 ▲2.74 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Auto Refresh API AJAX
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲18 | 14.17 ▼0.41 | 1.84 ▼0.39 | 45.16 ▲2.67 |
Dashboard /wp-admin | 2,210 ▲33 | 5.56 ▼0.09 | 94.72 ▲4.28 | 83.18 ▲39.28 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.10 | 38.19 ▲0.81 | 33.56 ▼6.76 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.65 ▲5.52 | 654.38 ▼17.09 | 144.91 ▲83.57 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.27 ▲0.03 | 110.11 ▲5.17 | 80.27 ▲35.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auto-refresh-api-ajax/auto-refresh-api-ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: liveticker, json, api, ajax, liveupdate...
auto-refresh-api-ajax/auto-refresh-api-ajax.php Passed 13 tests
The entry point to "Auto Refresh API AJAX" version 1.2.8 is a PHP file that has certain tags in its header comment area
49 characters long description:
Load JSON-data via Ajax, display it and reload it
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin631 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 66 | 41 | 605 |
JavaScript | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis 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 | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 17 | 85.00% |
▷ Anonymous functions | 3 | 15.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/araa-loadcircle-16x16.png | 0.45KB | 0.39KB | ▼ 12.83% |
images/screenshot-1.png | 65.07KB | 36.27KB | ▼ 44.26% |
images/araa-loadcircle-256x256.png | 4.80KB | 3.77KB | ▼ 21.45% |