10% wp-auto-publish

Code Review | WP-Auto-Publish

WordPress plugin WP-Auto-Publish scored10%from 54 tests.

About plugin

  • Plugin page: wp-auto-publish
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9
  • WordPress version: 6.3.1
  • First release: Sep 5, 2018
  • Latest release: Sep 8, 2018
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: flashcol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,518 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-auto-publish/wp-auto-publish.php+80
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.72ms] Passed 4 tests

An overview of server-side resources used by WP-Auto-Publish
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.92 ▼32.74
Dashboard /wp-admin2.05 ▼1.264.74 ▼46.60
Posts /wp-admin/edit.php2.05 ▼1.315.76 ▼38.80
Add New Post /wp-admin/post-new.php2.05 ▼3.846.31 ▼80.73
Media Library /wp-admin/upload.php2.05 ▼1.185.76 ▼30.60

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP-Auto-Publish
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.19 ▼1.391.94 ▲0.0640.81 ▼6.77
Dashboard /wp-admin2,222 ▲345.78 ▲0.7599.49 ▼13.8840.65 ▼3.19
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0034.12 ▼1.1833.05 ▼3.21
Add New Post /wp-admin/post-new.php1,527 ▼1017.77 ▼5.41675.86 ▼2.9757.28 ▲4.55
Media Library /wp-admin/upload.php1,404 ▲164.28 ▲0.0996.37 ▼3.4241.20 ▼5.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-auto-publish/wp-auto-publish.php+80
    date_default_timezone_set(): Timezone ID '' is invalid
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
9 plugin tags: post missed schedule, cron, wp-cron, crontrol, automatically published...

wp-auto-publish/wp-auto-publish.php 92% from 13 tests

"WP-Auto-Publish" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected146 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21519146

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin