Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.53ms] Passed 4 tests
Server-side resources used by WP Dev Flag
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.23 ▼0.88 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.76 ▼0.14 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.04 ▼4.01 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 89.85 ▼9.07 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.39 ▲3.19 |
WP Dev Flag Options /wp-admin/plugins.php?page=wp_dev_flag_options | 3.43 | 35.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
wp_dev_flag_display_options |
Browser metrics Passed 4 tests
WP Dev Flag: 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,817 ▲31 | 14.29 ▼0.31 | 1.86 ▼0.04 | 43.49 ▲3.85 |
Dashboard /wp-admin | 2,220 ▲40 | 5.81 ▲0.16 | 95.18 ▲0.62 | 40.96 ▲1.85 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.31 ▲0.33 | 37.07 ▲1.44 | 36.82 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.02 ▼0.10 | 685.65 ▼6.80 | 37.89 ▼26.32 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.27 ▲0.09 | 102.09 ▼1.56 | 46.13 ▼1.73 |
WP Dev Flag Options /wp-admin/plugins.php?page=wp_dev_flag_options | 871 | 1.83 | 30.96 | 32.01 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-dev-flag/admin/partials/wp-dev-flag-admin-display.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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: dev, banner, development, flag, production...
wp-dev-flag/wp-dev-flag.php Passed 13 tests
The main PHP file in "WP Dev Flag" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
Shows a floating badge on the front end, to visually distinguish your development site from production.
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
No dangerous file extensions were detected719 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 257 | 677 | 529 |
JavaScript | 2 | 26 | 31 | 99 |
Markdown | 1 | 29 | 0 | 54 |
CSS | 1 | 8 | 4 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin