84% tweeteverything

Code Review | TweetEverything

WordPress plugin TweetEverything scored84%from 54 tests.

About plugin

  • Plugin page: tweeteverything
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Apr 30, 2014
  • Number of updates: 3
  • Update frequency: every 8.7 days
  • Top authors: mapteo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by TweetEverything
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.71 ▼2.42
Dashboard /wp-admin3.31 ▲0.0147.05 ▼2.26
Posts /wp-admin/edit.php3.37 ▲0.0046.94 ▼5.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0077.93 ▼9.82
Media Library /wp-admin/upload.php3.24 ▲0.0035.45 ▲2.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TweetEverything
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17013.48 ▼0.8910.26 ▲8.5944.16 ▼3.82
Dashboard /wp-admin2,192 ▲155.58 ▼0.0888.80 ▼16.4935.41 ▼9.51
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0239.07 ▲1.0737.25 ▼7.31
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▼0.30670.32 ▲49.4664.07 ▲4.05
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0395.82 ▼2.5844.98 ▼2.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tweeteverything/tweeteverything.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: highlighted text, twitter, share, highlight text, tweet

tweeteverything/tweeteverything.php Passed 13 tests

The main PHP script in "TweetEverything" version 1.0 is automatically included on every request by WordPress
71 characters long description:
TweetEverything lets readers tweet highlighted text from pages & posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected94 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113654
Markdown113025
PHP1589
CSS1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 2.17MB with 1.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/1.png795.14KB253.11KB▼ 68.17%
img/twitter-icon.png3.60KB2.84KB▼ 21.19%
screenshot/2.png781.06KB249.27KB▼ 68.09%
screenshot/3.png646.46KB218.65KB▼ 66.18%