Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼138.22ms] Passed 4 tests
Server-side resources used by appwidget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.11 ▲11.33 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.21 ▲3.66 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.87 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 90.93 ▼552.47 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 35.09 ▼4.20 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for appwidget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.18 ▲0.21 | 9.89 ▲1.79 | 45.20 ▼1.80 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.08 | 137.32 ▼5.70 | 121.18 ▲10.67 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.70 ▲0.00 | 65.20 ▼1.03 | 90.86 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.89 ▲0.07 | 374.29 ▲19.93 | 112.16 ▲1.91 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.02 ▲0.02 | 144.16 ▲0.52 | 120.72 ▼5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/appwidget/tinymce/appwidget_dialog.php
- > /wp-content/plugins/appwidget/appwidget.php
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 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This is tinymce editor function keys.), #2 (This is a search application page.), #3 (This is appwidget filter Android application interface.), #4 (This is how the appwidget plugin looks.)
- Plugin Name: Please specify the plugin name on the first line (
=== appwidget ===
) - Requires at least: Version format is invalid
appwidget/appwidget.php Passed 13 tests
The primary PHP file in "appwidget" version 0.3 is used by WordPress to initiate all plugin functionality
72 characters long description:
With appwidget you can easily share your Android app on your blog posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected237 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 30 | 195 |
JavaScript | 2 | 6 | 3 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.42MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/images/appchina.png | 1.71KB | 1.01KB | ▼ 40.63% |
screenshot-2.png | 180.00KB | 55.00KB | ▼ 69.44% |
screenshot-4.png | 96.54KB | 31.42KB | ▼ 67.46% |
screenshot-3.png | 103.03KB | 30.56KB | ▼ 70.34% |
(invalid) screenshot-1.png | 43.83KB | 0.00KB | ▼ 100.00% |