84% twitter-mentions-in-posts

Code Review | Twitter mentions in posts

WordPress plugin Twitter mentions in posts scored84%from 54 tests.

About plugin

  • Plugin page: twitter-mentions-...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Feb 25, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Fabulatorcz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,102 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.86ms] Passed 4 tests

A check of server-side resources used by Twitter mentions in posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0852.29 ▲5.25
Dashboard /wp-admin3.43 ▲0.1374.08 ▲8.88
Posts /wp-admin/edit.php3.40 ▲0.0548.36 ▼5.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.47 ▼11.94
Media Library /wp-admin/upload.php3.28 ▲0.0536.82 ▼3.24
Twitter mentions Setting /wp-admin/options-general.php?page=twitter-mentions-in-posts3.2436.23

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Twitter mentions in posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9113.89 ▼0.7329.63 ▲27.7945.69 ▲1.57
Dashboard /wp-admin2,199 ▲195.59 ▼0.1189.41 ▼1.1741.47 ▼0.25
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0035.62 ▼3.7735.08 ▼0.26
Add New Post /wp-admin/post-new.php1,538 ▲1218.24 ▼5.50640.68 ▼60.0966.99 ▲13.15
Media Library /wp-admin/upload.php1,404 ▲74.15 ▼0.06103.86 ▼12.9746.90 ▼0.13
Twitter mentions Setting /wp-admin/options-general.php?page=twitter-mentions-in-posts8772.0425.6328.37

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-mentions-in-posts/twitter-mentions-in-posts.php:15

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 is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: mentions, social, twitter, comments

twitter-mentions-in-posts/twitter-mentions-in-posts.php Passed 13 tests

This is the main PHP file of "Twitter mentions in posts" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Show tweets about your posts right under them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected207 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12214207

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected