84% sourtweet-twitter-footer

Code Review | SourTweet

WordPress plugin SourTweet scored84%from 54 tests.

About plugin

  • Plugin page: sourtweet-twitter...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Aug 11, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sourcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.91ms] Passed 4 tests

An overview of server-side resources used by SourTweet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.79 ▼11.03
Dashboard /wp-admin3.31 ▼0.0448.70 ▼14.52
Posts /wp-admin/edit.php3.36 ▲0.0050.10 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.24 ▼17.54
Media Library /wp-admin/upload.php3.23 ▲0.0038.22 ▲2.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SourTweet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.96 ▼0.2432.01 ▲30.0141.13 ▼3.67
Dashboard /wp-admin2,195 ▲155.72 ▲0.0996.76 ▲4.6443.57 ▼0.30
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0440.31 ▲4.5837.09 ▲0.20
Add New Post /wp-admin/post-new.php1,531 ▼223.41 ▲0.12632.67 ▼61.1854.74 ▲2.57
Media Library /wp-admin/upload.php1,400 ▲64.29 ▲0.04112.91 ▲9.1344.49 ▼1.51

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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sourtweet-twitter-footer/sourtweet.php

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 96% from 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
7 plugin tags: twitter, post footer, twitter share, footer, every post...

sourtweet-twitter-footer/sourtweet.php 92% from 13 tests

"SourTweet" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("sourtweet-twitter-footer.php" instead of "sourtweet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191023
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions2
▷ Named functions2100.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