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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.69ms] Passed 4 tests
A check of server-side resources used by British Foreign Office Travel Advice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.99 ▼1.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.89 ▼5.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.23 ▼6.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.25 ▼5.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.96 ▲2.19 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for British Foreign Office Travel Advice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲153 | 13.54 ▼0.78 | 9.49 ▲7.30 | 42.45 ▼2.99 |
Dashboard /wp-admin | 2,200 ▲9 | 4.85 ▼1.05 | 122.63 ▲18.71 | 46.79 ▲6.19 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.03 | 40.59 ▼0.25 | 37.27 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.36 ▲0.02 | 638.36 ▼6.34 | 51.48 ▼1.20 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▼0.09 | 103.40 ▲1.99 | 45.01 ▲1.00 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/british-foreign-office-travel-advice/index.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Create a custom meta tag in any post and add the country as the value), #2 (Once you've added the shortcode for pushing the information to a page on load up, this is what you'll see)
british-foreign-office-travel-advice/index.php 85% from 13 tests
The main PHP script in "British Foreign Office Travel Advice" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("british-foreign-office-travel-advice.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin420 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 40 | 53 | 202 |
PHP | 1 | 69 | 47 | 164 |
CSS | 1 | 8 | 2 | 54 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
2.png | 73.90KB | 21.83KB | ▼ 70.47% |
img/plus.png | 27.81KB | 0.16KB | ▼ 99.43% |
img/minus.png | 50.27KB | 0.16KB | ▼ 99.68% |
1.png | 22.80KB | 7.69KB | ▼ 66.26% |