83% auto-publish-tumblr

Code Review | WP Tumblr Auto Publish

WordPress plugin WP Tumblr Auto Publish scored83%from 54 tests.

About plugin

  • Plugin page: auto-publish-tumblr
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2018
  • Latest release: Nov 7, 2023
  • Number of updates: 11
  • Update frequency: every 187.0 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /7,821 total downloads

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.29MB] [CPU: ▼2.35ms] Passed 4 tests

Analyzing server-side resources used by WP Tumblr Auto Publish
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2843.41 ▲0.28
Dashboard /wp-admin3.65 ▲0.3051.50 ▼14.03
Posts /wp-admin/edit.php3.70 ▲0.3453.86 ▲8.08
Add New Post /wp-admin/post-new.php6.19 ▲0.3090.85 ▼0.29
Media Library /wp-admin/upload.php3.51 ▲0.2737.79 ▲4.63
Suggest a Feature /wp-admin/admin.php?page=tumblr-auto-publish-suggest-features3.5235.53
Logs /wp-admin/admin.php?page=tumblr-auto-publish-log3.4936.01
About /wp-admin/admin.php?page=tumblr-auto-publish-about3.7337.29
Settings /wp-admin/admin.php?page=tumblr-auto-publish-settings3.7438.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 306 new files
Database: no new tables, 30 new options
New WordPress options
xyz_tbap_post_logs
xyz_tbap_future_to_publish
xyz_tbap_default_selection_edit
xyz_tbap_apply_filters
xyz_tbap_tbpost_media_permission
xyz_tbap_include_categories
xyz_tbap_include_pages
xyz_tbap_tbpost_permission
xyz_tbap_tbconsumer_id
xyz_tbap_tb_id
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Tumblr Auto Publish
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲10914.27 ▲0.111.86 ▲0.0539.80 ▼3.19
Dashboard /wp-admin2,221 ▲475.54 ▼0.1193.60 ▲1.7879.64 ▲37.11
Posts /wp-admin/edit.php2,144 ▲442.02 ▼0.1338.61 ▲3.2733.59 ▼1.81
Add New Post /wp-admin/post-new.php1,561 ▲3523.09 ▼0.05673.78 ▲57.0056.19 ▲4.98
Media Library /wp-admin/upload.php1,435 ▲354.13 ▼0.0597.84 ▼10.8573.22 ▲30.26
Suggest a Feature /wp-admin/admin.php?page=tumblr-auto-publish-suggest-features1,1181.6626.1954.95
Logs /wp-admin/admin.php?page=tumblr-auto-publish-log1,1301.6525.0434.71
About /wp-admin/admin.php?page=tumblr-auto-publish-about2,1681.8124.1844.34
Settings /wp-admin/admin.php?page=tumblr-auto-publish-settings1,6281.7627.82117.73

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • xyz_credit_link
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 79× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TumblrTest' not found in wp-content/plugins/auto-publish-tumblr/vendor/tumblr/tumblr/test/TaggedTest.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/auto-publish-tumblr/vendor/myclabs/deep-copy/src/DeepCopy/Filter/SetNullFilter.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/psr7/src/FnStream.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/psr7/src/BufferStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/promises/src/Coroutine.php:45
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DeepCopy\\f008\\A' not found in wp-content/plugins/auto-publish-tumblr/vendor/myclabs/deep-copy/fixtures/f008/B.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/auto-publish-tumblr/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/auto-publish-tumblr/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

auto-publish-tumblr/wp-tumblr-auto-publish.php 85% from 13 tests

"WP Tumblr Auto Publish" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-publish-tumblr.php" instead of "wp-tumblr-auto-publish.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected24,443 lines of code in 245 files:
LanguageFilesBlank linesComment linesLines of code
PHP1942,7446,68814,325
PO File91,6291,6924,222
Markdown191,40903,914
JSON121401,200
CSS11533615
YAML6273116
JavaScript14023
XML20019
make1409

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.65
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces33
Interfaces29
Traits3
Classes135
▷ Abstract classes21.48%
▷ Concrete classes13398.52%
▷ Final classes3425.56%
Methods958
▷ Static methods15115.76%
▷ Public methods81284.76%
▷ Protected methods60.63%
▷ Private methods14014.61%
Functions195
▷ Named functions6332.31%
▷ Anonymous functions13267.69%
Constants66
▷ Global constants34.55%
▷ Class constants6395.45%
▷ Public constants5282.54%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tick.png0.91KB0.87KB▼ 4.30%
images/donate.png3.45KB0.72KB▼ 78.97%
images/xyz_logo.png9.26KB3.02KB▼ 67.36%
images/pause.png6.80KB4.51KB▼ 33.71%
vendor/myclabs/deep-copy/doc/graph.png6.29KB3.03KB▼ 51.86%