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.02MB] [CPU: ▼7.51ms] Passed 4 tests
Analyzing server-side resources used by Flag Me
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.98 ▲0.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.98 ▲4.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.52 ▼9.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.79 ▼15.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.26 ▼5.66 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Flag Me
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.30 ▼1.28 | 1.72 ▼0.06 | 43.59 ▲2.05 |
Dashboard /wp-admin | 2,217 ▲29 | 5.79 ▼0.03 | 128.20 ▲4.17 | 48.74 ▲1.64 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.06 ▲0.06 | 47.06 ▲4.19 | 40.64 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,609 ▲76 | 20.59 ▼0.50 | 688.24 ▼48.14 | 78.00 ▲20.54 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.18 ▼0.15 | 114.83 ▼7.04 | 50.65 ▼9.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/flag-me/flag-me.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flag-me/admin/flag-me_admin.php:40
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: localization, internationalization
flag-me/flag-me.php Passed 13 tests
The main PHP script in "Flag Me" version 0.2 is automatically included on every request by WordPress
82 characters long description:
Flag Me enables you to add a country flag before the title of your posts or pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected272 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 56 | 132 |
CSS | 1 | 18 | 0 | 82 |
PO File | 2 | 20 | 22 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 8 | |
▷ Named functions | 8 | 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
18 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/en.png | 1.73KB | 0.99KB | ▼ 42.60% |
icons/de.png | 1.13KB | 0.39KB | ▼ 65.11% |
icons/zh.png | 0.46KB | 0.51KB | 0.00% |
icons/pt.png | 0.97KB | 0.93KB | ▼ 4.02% |
icons/ru.png | 1.08KB | 0.29KB | ▼ 73.01% |