Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.87ms] Passed 4 tests
Server-side resources used by azurecurve Flags
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.70 ▼11.13 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.44 ▼5.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 57.53 ▲2.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.78 ▼10.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.95 ▼3.51 |
Flags /wp-admin/admin.php?page=azc-f | 3.19 | 37.64 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 3.20 | 41.15 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 262 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
azurecurve Flags: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.27 ▼0.05 | 1.76 ▼0.31 | 46.35 ▼0.92 |
Dashboard /wp-admin | 2,208 ▲31 | 5.56 ▼0.12 | 94.01 ▼6.21 | 80.38 ▲30.24 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.98 ▼0.01 | 39.21 ▼2.22 | 35.93 ▼6.02 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.34 ▲2.33 | 692.28 ▼26.19 | 49.31 ▼10.56 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.11 ▼0.08 | 116.73 ▲4.10 | 77.79 ▲27.40 |
Flags /wp-admin/admin.php?page=azc-f | 2,116 | 2.12 | 38.24 | 80.23 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 870 | 2.00 | 29.48 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=azc-f
- > Notice in wp-content/plugins/azurecurve-flags/azurecurve-flags.php+425
Undefined index: AN
- > GET request to /wp-admin/admin.php?page=azc-f
- > Notice in wp-content/plugins/azurecurve-flags/azurecurve-flags.php+425
Undefined index: CATALONIA
- > GET request to /wp-admin/admin.php?page=azc-f
- > Notice in wp-content/plugins/azurecurve-flags/azurecurve-flags.php+425
Undefined index: FAM
- > GET request to /wp-admin/admin.php?page=azc-f
- > Notice in wp-content/plugins/azurecurve-flags/azurecurve-flags.php+425
Undefined index: NONE
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 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/azurecurve-flags/includes/menu.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-flags/includes/menu.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: pages, classicpress, posts, flags, shortcode...
azurecurve-flags/azurecurve-flags.php Passed 13 tests
The main PHP script in "azurecurve Flags" version 2.2.0 is automatically included on every request by WordPress
72 characters long description:
Allows a 16x16 flag to be displayed in a post of page using a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected581 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 33 | 562 |
CSS | 2 | 0 | 4 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
254 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ba.png | 0.58KB | 0.71KB | 0.00% |
images/lv.png | 0.45KB | 0.71KB | 0.00% |
images/hk.png | 0.51KB | 0.65KB | 0.00% |
images/am.png | 0.49KB | 0.71KB | 0.00% |
images/mn.png | 0.48KB | 0.67KB | 0.00% |