Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.21ms] Passed 4 tests
An overview of server-side resources used by TinyWebDB API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.76 ▼11.49 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.10 ▲2.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.98 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.13 ▼5.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 33.61 ▼0.26 |
Log tail /wp-admin/admin.php?page=tinywebdb_log | 3.21 | 29.97 |
TinyWebDB /wp-admin/admin.php?page=tinywebdb_api | 3.21 | 31.50 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TinyWebDB API
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 14.47 ▲0.16 | 1.64 ▼0.78 | 39.02 ▼4.05 |
Dashboard /wp-admin | 2,221 ▲33 | 5.83 ▲0.97 | 102.75 ▼9.03 | 39.28 ▼4.09 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.03 ▲0.02 | 42.17 ▼0.93 | 36.97 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 23.42 ▲5.38 | 691.33 ▲32.36 | 49.65 ▼6.89 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.26 ▲0.04 | 98.46 ▼1.93 | 42.34 ▼2.86 |
Log tail /wp-admin/admin.php?page=tinywebdb_log | 785 | 1.72 | 28.22 | 26.45 |
TinyWebDB /wp-admin/admin.php?page=tinywebdb_api | 1,000 | 1.69 | 23.85 | 36.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tinywebdb_api
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tinywebdb_api
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=tinywebdb_log
- > Notice in wp-content/plugins/tinywebdb-api/menus.php+38
Undefined index: logfile
- > GET request to /wp-admin/admin.php?page=tinywebdb_api
- > Notice in wp-content/plugins/tinywebdb-api/menus.php+85
Undefined index: issubmitted
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinywebdb-api/menus.php:210
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tinywebdb-api/tinywebdb-api.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (The TinyWebDB API management page in the WordPress Admin.) image not found
tinywebdb-api/tinywebdb-api.php Passed 13 tests
The principal PHP file in "TinyWebDB API" v. 0.2.11 is loaded by WordPress automatically on each request
81 characters long description:
a AppInventor TinyWebDB API plugin, use you WordPress as a TinyWebDB web service.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin537 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 79 | 32 | 401 |
Markdown | 2 | 65 | 0 | 136 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | |
▷ Static methods | 5 | 55.56% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 93.71KB | 29.14KB | ▼ 68.90% |