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.16MB] [CPU: ▼27.00ms] Passed 4 tests
An overview of server-side resources used by OneClickPublish
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.89 ▲1.61 |
Dashboard /wp-admin | 3.14 ▼0.20 | 25.53 ▼35.68 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 29.74 ▼20.21 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 65.89 ▼40.85 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 25.80 ▼11.25 |
Published Post /wp-admin/admin.php?page=nk-publish | 3.12 | 25.08 |
Drafted Post /wp-admin/admin.php?page=nk-draft | 3.12 | 26.39 |
Drafted Page /wp-admin/admin.php?page=nk-draft-page | 3.12 | 23.94 |
OneClickPublish /wp-admin/admin.php?page=nk-bulk | 3.12 | 28.72 |
Published Page /wp-admin/admin.php?page=nk-publish-page | 3.12 | 24.81 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OneClickPublish
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 14.40 ▲0.01 | 1.72 ▲0.24 | 45.63 ▲5.43 |
Dashboard /wp-admin | 2,256 ▲75 | 5.52 ▼0.19 | 83.39 ▼15.91 | 77.03 ▲33.61 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 1.98 ▼0.02 | 34.04 ▼7.09 | 32.10 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,595 ▲65 | 23.19 ▲0.17 | 694.12 ▲14.40 | 62.86 ▲10.76 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.19 ▲0.07 | 97.79 ▼19.05 | 77.42 ▲28.55 |
Published Post /wp-admin/admin.php?page=nk-publish | 1,073 | 2.48 | 41.42 | 37.45 |
Drafted Post /wp-admin/admin.php?page=nk-draft | 1,051 | 2.59 | 40.72 | 33.48 |
Drafted Page /wp-admin/admin.php?page=nk-draft-page | 1,073 | 2.61 | 39.61 | 33.49 |
OneClickPublish /wp-admin/admin.php?page=nk-bulk | 1,056 | 2.26 | 24.42 | 40.76 |
Published Page /wp-admin/admin.php?page=nk-publish-page | 1,052 | 2.49 | 41.00 | 32.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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)
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nk-publish-page
- > Notice in wp-content/plugins/oneclickpublish/includes/nk-settings.php+40
Only variables should be passed by reference
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/oneclickpublish/nk-bulk.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nk-publish-page
- > Network (severe)
wp-content/plugins/oneclickpublish/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nk-publish-page
- > Network (severe)
wp-content/plugins/oneclickpublish/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (http://www.no-kt.com/plugin/Screenshot1.jpg), #2 (http://www.no-kt.com/plugin/Screenshot2.jpg)
oneclickpublish/nk-bulk.php 92% from 13 tests
The main file in "OneClickPublish" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oneclickpublish.php" instead of "nk-bulk.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
Success! There were no dangerous files found in this plugin5,562 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,289 | 5,854 | 5,096 |
PHP | 6 | 64 | 26 | 282 |
CSS | 2 | 40 | 29 | 184 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 19.12KB | 7.97KB | ▼ 58.31% |
img/wpmini-blue.png | 0.73KB | 0.83KB | 0.00% |