74% advanced-twitter

Code Review | The Advanced Twitter Plugin

WordPress plugin The Advanced Twitter Plugin scored 74% 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: 5.9.2
  • 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,057 total downloads


Plugin footprint 65% 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.22MB] [CPU: ▼308.04ms] Passed 4 tests

Server-side resources used by The Advanced Twitter Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0162.44 ▲7.64
Dashboard /wp-admin3.42 ▲0.0139.08 ▲3.63
Posts /wp-admin/edit.php3.65 ▲0.0137.46 ▼2.93
Add New Post /wp-admin/post-new.php6.05 ▼0.9288.76 ▼1,229.44
Media Library /wp-admin/upload.php3.30 ▲0.0126.89 ▼3.40
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option3.2724.46

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 4 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

The Advanced Twitter Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5215.81 ▲0.145.72 ▼0.102.59 ▼0.07
Dashboard /wp-admin2,897 ▲466.13 ▼0.08116.56 ▼15.96150.90 ▼4.61
Posts /wp-admin/edit.php2,696 ▲23.25 ▲0.0160.76 ▼3.12145.26 ▼2.10
Add New Post /wp-admin/post-new.php1,850 ▲18921.43 ▲4.30443.29 ▲24.05163.91 ▲16.45
Media Library /wp-admin/upload.php1,703 ▲85.54 ▼0.01142.62 ▲4.72184.88 ▼5.12
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option1,2202.3956.98110.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_dragon_tweet
  • Zombie WordPress options were found after uninstall: 4 options
    • ds_display_bottom
    • ds_display_top
    • ds_related
    • ds_counttype

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: advanced twitter plugin, social sharing plugin, twitter plugin

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

"The Advanced Twitter Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin311 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ 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%