Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.36ms] Passed 4 tests
Server-side resources used by One-liners
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.39 ▲5.48 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.82 ▼0.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.68 ▼5.52 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.51 ▼2.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.30 ▼0.35 |
Options /wp-admin/edit.php?post_type=thebrent_oneliners&page=thebrent_oneliners_options | 3.26 | 28.15 |
Add New /wp-admin/post-new.php?post_type=thebrent_oneliners | 3.31 | 42.46 |
Oneliners /wp-admin/edit.php?post_type=thebrent_oneliners | 3.32 | 40.63 |
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: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_thebrent_oneliners |
widget_theysaidso_widget |
widget_recent-comments |
thebrent_oneliners_options |
Browser metrics Passed 4 tests
One-liners: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.61 ▼0.77 | 4.67 ▲3.05 | 43.33 ▲2.18 |
Dashboard /wp-admin | 2,234 ▲85 | 5.83 ▲0.23 | 95.70 ▼4.03 | 38.48 ▼4.11 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.01 ▲0.02 | 37.62 ▼5.12 | 34.56 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,568 ▲48 | 18.37 ▼4.81 | 635.22 ▼36.08 | 64.02 ▲11.81 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.17 ▼0.04 | 95.45 ▼12.58 | 43.13 ▼0.75 |
Options /wp-admin/edit.php?post_type=thebrent_oneliners&page=thebrent_oneliners_options | 806 | 2.06 | 23.84 | 26.79 |
Add New /wp-admin/post-new.php?post_type=thebrent_oneliners | 1,424 | 2.50 | 48.16 | 50.22 |
Oneliners /wp-admin/edit.php?post_type=thebrent_oneliners | 1,084 | 2.11 | 30.05 | 29.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
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- thebrent_oneliners_options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_thebrent_oneliners
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/one-liners/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/one-liners/widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/one-liners/widget.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: shortcodes, quotes, one liners, widgets
one-liners/oneliners.php 85% from 13 tests
The principal PHP file in "One-liners" v. 3.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("one-liners.php" instead of "oneliners.php")
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 detected203 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 26 | 203 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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
No PNG images were found in this plugin