72% oneclickpublish

Code Review | OneClickPublish

WordPress plugin OneClickPublish scored72%from 54 tests.

About plugin

  • Plugin page: oneclickpublish
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Aug 15, 2013
  • Number of updates: 19
  • Update frequency: every 0.6 days
  • Top authors: yantrakaar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,504 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.89 ▲1.61
Dashboard /wp-admin3.14 ▼0.2025.53 ▼35.68
Posts /wp-admin/edit.php3.28 ▼0.0829.74 ▼20.21
Add New Post /wp-admin/post-new.php5.52 ▼0.3765.89 ▼40.85
Media Library /wp-admin/upload.php3.23 ▼0.0025.80 ▼11.25
Published Post /wp-admin/admin.php?page=nk-publish3.1225.08
Drafted Post /wp-admin/admin.php?page=nk-draft3.1226.39
Drafted Page /wp-admin/admin.php?page=nk-draft-page3.1223.94
OneClickPublish /wp-admin/admin.php?page=nk-bulk3.1228.72
Published Page /wp-admin/admin.php?page=nk-publish-page3.1224.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12414.40 ▲0.011.72 ▲0.2445.63 ▲5.43
Dashboard /wp-admin2,256 ▲755.52 ▼0.1983.39 ▼15.9177.03 ▲33.61
Posts /wp-admin/edit.php2,161 ▲611.98 ▼0.0234.04 ▼7.0932.10 ▼2.47
Add New Post /wp-admin/post-new.php1,595 ▲6523.19 ▲0.17694.12 ▲14.4062.86 ▲10.76
Media Library /wp-admin/upload.php1,461 ▲614.19 ▲0.0797.79 ▼19.0577.42 ▲28.55
Published Post /wp-admin/admin.php?page=nk-publish1,0732.4841.4237.45
Drafted Post /wp-admin/admin.php?page=nk-draft1,0512.5940.7233.48
Drafted Page /wp-admin/admin.php?page=nk-draft-page1,0732.6139.6133.49
OneClickPublish /wp-admin/admin.php?page=nk-bulk1,0562.2624.4240.76
Published Page /wp-admin/admin.php?page=nk-publish-page1,0522.4941.0032.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2895,8545,096
PHP66426282
CSS24029184

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 code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/logo.png19.12KB7.97KB▼ 58.31%
img/wpmini-blue.png0.73KB0.83KB0.00%