89% reve-click2tweet

Code Review | Reve Click2Tweet

WordPress plugin Reve Click2Tweet scored89%from 54 tests.

About plugin

  • Plugin page: reve-click2tweet
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Feb 3, 2021
  • Number of updates: 13
  • Update frequency: every 80.9 days
  • Top authors: promostudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Reve Click2Tweet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.61 ▼0.10
Dashboard /wp-admin3.37 ▲0.0746.85 ▼6.66
Posts /wp-admin/edit.php3.42 ▲0.0743.59 ▲4.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0778.42 ▼22.42
Media Library /wp-admin/upload.php3.29 ▲0.0633.49 ▲2.53
Reve Click2Tweet /wp-admin/options-general.php?page=reve-click2tweet3.3732.72

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Reve Click2Tweet
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.32 ▼1.361.77 ▼0.0543.38 ▲0.40
Dashboard /wp-admin2,212 ▲245.84 ▼0.06111.12 ▼5.0141.96 ▼5.05
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0535.20 ▼4.9235.52 ▲0.70
Add New Post /wp-admin/post-new.php1,533 ▼1023.07 ▲0.29671.30 ▲77.6457.54 ▲7.14
Media Library /wp-admin/upload.php1,394 ▲34.21 ▲0.0192.44 ▼9.0640.52 ▼5.18
Reve Click2Tweet /wp-admin/options-general.php?page=reve-click2tweet1,2382.0523.8745.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: twitter, click to tweet, twitter share, share buttons, shortcode

reve-click2tweet/reve-click2tweet.php 85% from 13 tests

The main PHP file in "Reve Click2Tweet" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected926 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6248209801
CSS1201286
JavaScript111927
SVG40012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin