Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.75ms] Passed 4 tests
An overview of server-side resources used by WORST
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 26.08 ▼17.94 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.17 ▼6.89 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 44.65 ▼7.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.51 ▼6.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.40 ▼3.71 |
New Area /wp-admin/post-new.php?post_type=worst_area | 3.34 | 44.21 |
All Areas /wp-admin/edit.php?post_type=worst_area | 3.35 | 39.56 |
WORST /wp-admin/options-general.php?page=uzaklab_worst | 3.24 | 30.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WORST
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 14.29 ▲0.03 | 29.73 ▲28.01 | 42.48 ▼1.84 |
Dashboard /wp-admin | 2,232 ▲44 | 5.79 ▲0.80 | 98.12 ▼10.56 | 38.45 ▼4.27 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.14 ▲0.14 | 33.89 ▼7.85 | 36.48 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,566 ▲52 | 23.02 ▲5.50 | 670.32 ▼19.95 | 51.97 ▲1.38 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.19 ▲0.06 | 97.40 ▼18.31 | 43.90 ▼4.05 |
New Area /wp-admin/post-new.php?post_type=worst_area | 1,542 | 2.51 | 51.35 | 59.42 |
All Areas /wp-admin/edit.php?post_type=worst_area | 1,091 | 2.00 | 31.73 | 30.49 |
WORST /wp-admin/options-general.php?page=uzaklab_worst | 828 | 2.06 | 25.46 | 30.34 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=uzaklab_worst
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=uzaklab_worst
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=uzaklab_worst
- > Notice in wp-content/plugins/worst/uzaklab_worst.php+325
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× 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/worst/uzaklab_worst.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/worst/page.php:1
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: shipping, cost, google, direction, maps...
worst/uzaklab_worst.php 92% from 13 tests
The primary PHP file in "WORST" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("worst.php" instead of "uzaklab_worst.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
No dangerous file extensions were detected443 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 18 | 330 |
JavaScript | 1 | 12 | 0 | 40 |
CSS | 1 | 9 | 0 | 38 |
Markdown | 1 | 43 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected