89% mensagem-seguir-twitter-no-final-do-post

Code Review | Mensagem Seguir Twitter no Final do Post

WordPress plugin Mensagem Seguir Twitter no Final do Post scored89%from 54 tests.

About plugin

  • Plugin page: mensagem-seguir-t...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2022
  • Latest release: Aug 6, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: conectandonet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Mensagem Seguir Twitter no Final do Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.55 ▲0.48
Dashboard /wp-admin3.31 ▼0.0444.33 ▼18.43
Posts /wp-admin/edit.php3.36 ▲0.0046.01 ▼0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.72 ▼11.28
Media Library /wp-admin/upload.php3.23 ▲0.0032.59 ▲0.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mensagem Seguir Twitter no Final do Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.101.51 ▼0.2139.84 ▼3.62
Dashboard /wp-admin2,198 ▲245.64 ▼0.0492.15 ▲3.8841.49 ▼2.83
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0338.77 ▼3.6337.53 ▲2.02
Add New Post /wp-admin/post-new.php1,526 ▼223.71 ▲0.57600.28 ▼61.3160.59 ▼0.33
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0096.60 ▼1.6542.52 ▼2.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: follow, twitter

mensagem-seguir-twitter-no-final-do-post/Mensagem Seguir Twitter no Final do Post.php 85% from 13 tests

The entry point to "Mensagem Seguir Twitter no Final do Post" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mensagem-seguir-twitter-no-final-do-post.php" instead of "Mensagem Seguir Twitter no Final do Post.php")

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
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16188

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin