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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.78ms] Passed 4 tests
Analyzing server-side resources used by World Flag
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.76 ▲0.81 |
Dashboard /wp-admin | 3.36 ▲0.01 | 59.99 ▼1.46 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.54 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 86.31 ▼2.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.31 ▲0.01 |
Server storage [IO: ▲0.56MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for World Flag
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.35 ▼0.02 | 1.87 ▲0.22 | 41.71 ▼2.26 |
Dashboard /wp-admin | 2,195 ▲14 | 5.65 ▼0.03 | 85.27 ▼13.33 | 42.23 ▼0.67 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.01 | 36.84 ▲2.35 | 35.74 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.41 ▼0.31 | 684.80 ▲7.48 | 54.83 ▲2.30 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▼0.03 | 108.51 ▼2.85 | 47.60 ▲0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/world-flag/world-flag.php:37
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/world-flag/assets/tinymce/dialog.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== world-flag ===
)
world-flag/world-flag.php Passed 13 tests
The main PHP script in "World Flag" version 2.5 is automatically included on every request by WordPress
44 characters long description:
Add any World's Country flag to post or page
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
There were no executable files found in this plugin752 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 9 | 25 | 427 |
CSS | 1 | 1 | 0 | 253 |
JavaScript | 2 | 6 | 7 | 72 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/tinymce/icon.png | 1.34KB | 1.37KB | 0.00% |
assets/flags.png | 76.98KB | 25.70KB | ▼ 66.61% |