78% select-tweet

Code Review | Select Tweet

WordPress plugin Select Tweet scored78%from 54 tests.

About plugin

  • Plugin page: select-tweet
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: abhijitnumber1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.10ms] Passed 4 tests

Analyzing server-side resources used by Select Tweet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.53 ▼0.71
Dashboard /wp-admin3.31 ▲0.0044.74 ▼7.55
Posts /wp-admin/edit.php3.36 ▲0.0046.87 ▼1.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.61 ▼6.19
Media Library /wp-admin/upload.php3.23 ▲0.0037.54 ▲4.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Select Tweet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.55 ▼0.852.09 ▼0.0744.36 ▲0.82
Dashboard /wp-admin2,206 ▲185.91 ▲1.08108.21 ▲5.8840.45 ▼4.20
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0139.51 ▼5.2235.54 ▼0.51
Add New Post /wp-admin/post-new.php1,533 ▲1923.03 ▲5.39667.54 ▲20.4654.07 ▼6.42
Media Library /wp-admin/upload.php1,385 ▼04.22 ▼0.0297.78 ▼5.2141.85 ▼1.16

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/select-tweet/html.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-tweet/select_tweat.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

select-tweet/select_tweat.php 92% from 13 tests

The main PHP file in "Select Tweet" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("select-tweet.php" instead of "select_tweat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin51 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12225
CSS10016
PHP242610

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin