83% tweetboost

Code Review | Schedule Tweets - TweetBoost Free

WordPress plugin Schedule Tweets - TweetBoost Free scored83%from 54 tests.

About plugin

  • Plugin page: tweetboost
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3.0
  • WordPress version: 6.3.1
  • First release: Mar 13, 2019
  • Latest release: Jan 30, 2020
  • Number of updates: 15
  • Update frequency: every 21.5 days
  • Top authors: Hudson Atwell (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.48MB] [CPU: ▲14.38ms] Passed 4 tests

A check of server-side resources used by Schedule Tweets - TweetBoost Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /6.87 ▲3.4175.47 ▲29.51
Dashboard /wp-admin6.94 ▲3.6069.86 ▲4.07
Posts /wp-admin/edit.php6.98 ▲3.6366.25 ▲19.17
Add New Post /wp-admin/post-new.php9.16 ▲3.27109.21 ▲4.78
Media Library /wp-admin/upload.php6.92 ▲3.6966.13 ▲31.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 339 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
acf_version
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Schedule Tweets - TweetBoost Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,247 ▲50115.35 ▲0.9712.81 ▲11.0931.87 ▼13.74
Dashboard /wp-admin2,686 ▲4987.55 ▲1.71187.88 ▲82.6152.23 ▲12.37
Posts /wp-admin/edit.php2,107 ▲152.06 ▲0.0845.41 ▲3.9735.65 ▼2.42
Add New Post /wp-admin/post-new.php7,102 ▲5,57428.68 ▲10.461,074.45 ▲408.9782.95 ▲21.40
Media Library /wp-admin/upload.php1,959 ▲5718.23 ▲4.03202.82 ▲75.7746.74 ▼3.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • acf_version
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 87× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweetboost/classes/class.acf-ini.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tweetboost/assets/plugins/acf/includes/api/api-helpers.php:114
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tweetboost/assets/plugins/acf/includes/fields/class-acf-field-google-map.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tweetboost/assets/plugins/acf/includes/fields/class-acf-field-link.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweetboost/assets/plugins/acf/includes/forms/form-user.php:36
    • > PHP Notice
      Undefined index: menu_order in wp-content/plugins/tweetboost/assets/plugins/acf/includes/admin/views/field-group-field.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tweetboost/assets/plugins/acf/includes/fields/class-acf-field-taxonomy.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tweetboost/assets/plugins/acf/includes/admin/views/field-group-field.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tweetboost/assets/plugins/acf/includes/api/api-template.php:960
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tweetboost/assets/plugins/acf/includes/fields/class-acf-field-image.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (This Tweet Has Been Scheduled!), #2 (Creating Tweets (Explained)), #3 (Dashboard Widgets (Explained)), #4 (Our Calendar Widget (Explained))
  • Donate link: Invalid URI found ("mailto:mbissettonline@gmail.com")
You can take inspiration from this readme.txt

tweetboost/tweet-boost.php 85% from 13 tests

The primary PHP file in "Schedule Tweets - TweetBoost Free" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tweetboost.php" instead of "tweet-boost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected102,790 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
PO File2820,65233,14443,842
JavaScript5616,04212,80127,909
PHP13115,13918,64118,249
CSS194621,0047,196
LESS41,4827783,784
Markdown93130797
SVG2180715
JSON200150
Ant1150100
XML25043
TypeScript1105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.84
▷ Minimum class complexity1.00
▷ Maximum class complexity190.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes110
▷ Abstract classes00.00%
▷ Concrete classes110100.00%
▷ Final classes00.00%
Methods800
▷ Static methods607.50%
▷ Public methods74993.62%
▷ Protected methods506.25%
▷ Private methods10.12%
Functions347
▷ Named functions34699.71%
▷ Anonymous functions10.29%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.88MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugins/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
assets/plugins/acf/assets/inc/select2/3/select2.png0.51KB0.99KB0.00%
screenshot-1.png59.03KB24.02KB▼ 59.30%
screenshot-2.png187.48KB71.24KB▼ 62.00%
assets/plugins/acf/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%