74% advanced-twitter

Code Review | The Advanced Twitter Plugin

WordPress plugin The Advanced Twitter Plugin scored74%from 54 tests.

About plugin

  • Plugin page: advanced-twitter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Nov 14, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dragonsearch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,247 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by The Advanced Twitter Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.79 ▲1.57
Dashboard /wp-admin3.35 ▲0.0544.77 ▼0.27
Posts /wp-admin/edit.php3.40 ▲0.0545.43 ▼0.36
Add New Post /wp-admin/post-new.php5.48 ▼0.4066.04 ▼27.57
Media Library /wp-admin/upload.php3.28 ▲0.0535.41 ▲2.53
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option3.2432.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 10 new options
New tables
wp_dragon_tweet
New WordPress options
can_compress_scripts
ds_display_top
theysaidso_admin_options
ds_display_bottom
widget_recent-posts
widget_recent-comments
db_upgraded
ds_related
ds_counttype
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for The Advanced Twitter Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.111.63 ▲0.0438.30 ▼3.28
Dashboard /wp-admin2,207 ▲195.83 ▲0.95100.64 ▼10.6737.98 ▼5.81
Posts /wp-admin/edit.php2,090 ▼22.03 ▲0.0139.30 ▲5.2134.85 ▲1.92
Add New Post /wp-admin/post-new.php6,302 ▲4,78326.06 ▲2.97914.67 ▲249.1557.14 ▲3.81
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0593.82 ▼4.8146.76 ▲4.78
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option9342.2124.1924.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_dragon_tweet
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • ds_display_top
    • ds_related
    • widget_theysaidso_widget
    • ds_display_bottom
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • ds_counttype
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix 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 register_activation_hook() in wp-content/plugins/advanced-twitter/advanced-twitter.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: twitter plugin, advanced twitter plugin, social sharing plugin

advanced-twitter/advanced-twitter.php Passed 13 tests

This is the main PHP file of "The Advanced Twitter Plugin" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Easily create a custom tweet button on your posts with a custom tweet description.

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
Success! There were no dangerous files found in this plugin311 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23451311

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ds-logo.png5.08KB2.13KB▼ 58.20%