84% maxretweet

Code Review | MaxReTweet - Optimize your Twitter Headlines

WordPress plugin MaxReTweet - Optimize your Twitter Headlines scored84%from 54 tests.

About plugin

  • Plugin page: maxretweet
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.8.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2014
  • Latest release: Nov 15, 2017
  • Number of updates: 6
  • Update frequency: every 199.2 days
  • Top authors: makeitrainusa (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10+ active /1,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.22ms] Passed 4 tests

Analyzing server-side resources used by MaxReTweet - Optimize your Twitter Headlines
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.22 ▼0.68
Dashboard /wp-admin3.36 ▲0.0650.00 ▼1.45
Posts /wp-admin/edit.php3.48 ▲0.1247.15 ▼0.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.63 ▼6.36
Media Library /wp-admin/upload.php3.29 ▲0.0637.54 ▲2.54
MaxRetweet Options /wp-admin/options-general.php?page=maxretweet-options3.2534.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
maxretweet_plugin_version
widget_recent-posts
mfix_link
theysaidso_admin_options
mfix_link_title
widget_recent-comments
maxretweet_options
db_upgraded

Browser metrics Passed 4 tests

MaxReTweet - Optimize your Twitter Headlines: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.33 ▲0.051.88 ▲0.2043.41 ▲4.69
Dashboard /wp-admin2,196 ▲225.56 ▼0.0796.47 ▲7.0442.35 ▼2.84
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0435.87 ▼0.6135.13 ▲0.43
Add New Post /wp-admin/post-new.php6,256 ▲4,72825.76 ▲2.58903.96 ▲211.8356.23 ▼5.37
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0099.24 ▼13.3447.57 ▼2.59
MaxRetweet Options /wp-admin/options-general.php?page=maxretweet-options8301.9929.4527.93

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
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • maxretweet_plugin_version
    • theysaidso_admin_options
    • maxretweet_options
    • widget_recent-comments
    • mfix_link_title
    • can_compress_scripts
    • mfix_link

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
Everything seems fine, however 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
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxretweet/includes/class-share.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/maxretweet/maxretweet.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxretweet/includes/class-link.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: javascript, share, twitter, retweet, connect

maxretweet/maxretweet.php Passed 13 tests

The entry point to "MaxReTweet - Optimize your Twitter Headlines" version 1.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Maximize your posts retweet and share potential with multiple custom tweet headline options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected400 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48040400

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/maxretweet_logo.png9.10KB3.86KB▼ 57.54%