84% tweet-it

Code Review | Tweet It!

WordPress plugin Tweet It! scored 84% from 54 tests.

About plugin

  • Plugin page: tweet-it
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: May 27, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Adfero_Group (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 784 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.95ms] Passed 4 tests

Server-side resources used by Tweet It!
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.12 ▼1.23
Dashboard /wp-admin3.32 ▲0.0151.77 ▲1.70
Posts /wp-admin/edit.php3.37 ▲0.0149.80 ▼3.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.56 ▲8.86
Media Library /wp-admin/upload.php3.24 ▲0.0144.28 ▲6.78

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Tweet It!: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲14313.59 ▼0.036.18 ▲1.2242.95 ▼3.52
Dashboard /wp-admin2,229 ▲205.89 ▲1.01101.26 ▼10.6383.82 ▲39.69
Posts /wp-admin/edit.php2,112 ▲232.02 ▼0.0039.76 ▼3.3736.74 ▼8.61
Add New Post /wp-admin/post-new.php1,566 ▲3323.96 ▲2.74677.36 ▼94.3829.07 ▼32.99
Media Library /wp-admin/upload.php1,414 ▲264.17 ▼0.08100.09 ▼9.7676.71 ▲27.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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)
Good news, no errors were detected

SRP 50% 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweet-it/tweetit.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: tweetit, tweets, twitter

tweet-it/tweetit.php 85% from 13 tests

The main PHP file in "Tweet It!" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tweet-it.php" instead of "tweetit.php")
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin84 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP112550
JavaScript11020
CSS12014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/moonwalk.png1.18KB0.55KB▼ 53.23%
resources/bird_blue.png0.19KB0.23KB0.00%
resources/bird_grey.png0.19KB0.23KB0.00%