79% silent-publish

Code Review | Silent Publish

WordPress plugin Silent Publish scored79%from 54 tests.

About plugin

  • Plugin page: silent-publish
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2010
  • Latest release: Feb 14, 2020
  • Number of updates: 16
  • Update frequency: every 244.6 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.56ms] Passed 4 tests

Analyzing server-side resources used by Silent Publish
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.08 ▲2.36
Dashboard /wp-admin3.37 ▲0.0652.58 ▲4.75
Posts /wp-admin/edit.php3.48 ▲0.1347.77 ▲1.63
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.36 ▼13.69
Media Library /wp-admin/upload.php3.29 ▲0.0636.58 ▼0.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Silent Publish
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.491.72 ▲0.2143.28 ▲5.01
Dashboard /wp-admin2,198 ▲215.62 ▲0.0394.58 ▲1.6443.74 ▲0.52
Posts /wp-admin/edit.php2,099 ▲22.00 ▲0.0233.66 ▼2.9335.78 ▲2.42
Add New Post /wp-admin/post-new.php1,537 ▲1123.93 ▲0.94666.19 ▼1.5251.12 ▼2.37
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0894.89 ▼19.1842.28 ▼5.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/silent-publish/tests/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/silent-publish/tests/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/silent-publish/tests/bootstrap.php on line 17

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: post, trackback, update services, ping, coffee2code...

silent-publish/silent-publish.php Passed 13 tests

The main file in "Silent Publish" v. 2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Adds the ability to publish a post without triggering pingbacks, trackbacks, or notifying update services.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin14,115 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,002
PHP4246358669
Markdown3420212
JavaScript53439187
Bourne Shell16221
XML10014
CSS10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity22.50
▷ Minimum class complexity6.00
▷ Maximum class complexity39.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods83
▷ Static methods1619.28%
▷ Public methods8197.59%
▷ Protected methods00.00%
▷ Private methods22.41%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected