67% accesspress-twitter-auto-post

Code Review | TAuto Poster

WordPress plugin TAuto Poster scored 67% from 54 tests.

About plugin

  • Plugin page: accesspress-twitt...
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.9.2
  • First release: Jun 19, 2015
  • Latest release: Nov 28, 2021
  • Number of updates: 63
  • Update frequency: every 37.4 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 137,671 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼293.24ms] Passed 4 tests

Analyzing server-side resources used by TAuto Poster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1556.12 ▲9.15
Dashboard /wp-admin3.51 ▲0.1033.28 ▲0.50
Posts /wp-admin/edit.php3.73 ▲0.0935.76 ▼2.08
Add New Post /wp-admin/post-new.php6.97 ▼0.0091.27 ▼1,169.67
Media Library /wp-admin/upload.php3.38 ▲0.0823.87 ▼1.72
Documentation /wp-admin/admin.php?page=tautoposter-doclinks3.1920.58
Check Premium Version /wp-admin/admin.php?page=tautoposter-premium3.1919.29
TAuto Poster /wp-admin/admin.php?page=atap3.4034.04

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: 1 new table, 1 new option
New tables
wp_atap_logs
New WordPress options
atap_settings

Browser metrics Passed 4 tests

A check of browser resources used by TAuto Poster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲8015.78 ▲0.355.76 ▼0.352.70 ▲0.21
Dashboard /wp-admin2,932 ▲716.03 ▼0.15116.91 ▼16.74157.55 ▼1.08
Posts /wp-admin/edit.php2,731 ▲373.24 ▲0.0065.26 ▲3.25143.38 ▼2.77
Add New Post /wp-admin/post-new.php1,848 ▲9620.01 ▼1.70406.67 ▼43.44177.27 ▲27.84
Media Library /wp-admin/upload.php1,736 ▲385.49 ▼0.04135.99 ▼2.47187.30 ▲3.26
Documentation /wp-admin/admin.php?page=tautoposter-doclinks1,21510.22344.09230.05
Check Premium Version /wp-admin/admin.php?page=tautoposter-premium2,41015.91544.36213.88
TAuto Poster /wp-admin/admin.php?page=atap2,09214.73427.30210.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_atap_logs
  • This plugin does not fully uninstall, leaving 1 option in the database
    • atap_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/cores/auto-post.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/tabs/post-settings.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/main-page.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/tabs/logs.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/tabs/settings.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/header.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/accesspress-twitter-auto-post.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/tabs/about.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/cores/save-settings.php
    • > /wp-content/plugins/accesspress-twitter-auto-post/inc/tabs/how-to-use.php

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)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=tautoposter-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/accesspress-twitter-auto-post/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tautoposter-premium
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=tautoposter-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/accesspress-social-auto-post/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Backend Plugin Settings Section), #2 (Backend Plugin Logs Section)
You can take inspiration from this readme.txt

accesspress-twitter-auto-post/accesspress-twitter-auto-post.php 85% from 13 tests

The main PHP script in "TAuto Poster" version 1.4.6 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,437 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP132809872,353
CSS2388392
JavaScript15021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity40.83
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods95
▷ Static methods33.16%
▷ Public methods4446.32%
▷ Protected methods5052.63%
▷ Private methods11.05%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 1.45MB with 1.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/upgrade to pro-feature.png851.16KB34.38KB▼ 95.96%
images/plugin.png12.50KB5.31KB▼ 57.50%
images/theme.png52.01KB17.38KB▼ 66.59%
images/upgrade to pro.png542.94KB32.95KB▼ 93.93%
images/customize.png24.05KB8.41KB▼ 65.05%