Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests
This is a short check of server-side resources used by CSS Flags library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.38 ▼0.85 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.33 ▼6.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.75 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.34 ▼7.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.88 ▼0.38 |
Server storage [IO: ▲3.89MB] [DB: ▲3.86MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
CSS_Flags |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CSS Flags library: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.25 ▼1.12 | 1.75 ▲0.12 | 36.65 ▼3.91 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.93 | 112.61 ▲9.64 | 41.44 ▼1.52 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▼0.00 | 44.01 ▲2.39 | 34.53 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.19 ▼0.18 | 582.91 ▼76.15 | 51.16 ▼3.22 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.23 ▲0.04 | 95.64 ▼5.23 | 39.94 ▼5.17 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/css-flags/css-flags.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: link, header
css-flags/css-flags.php Passed 13 tests
The principal PHP file in "CSS Flags library" v. 0.3.0 is loaded by WordPress automatically on each request
73 characters long description:
The plugin has responsive SVG flags for 252 countries. See documentation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,665 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,526 |
PHP | 3 | 31 | 35 | 139 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 1 | 25.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 75.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected