83% auto-twitter-hashtags

Code Review | Auto Twitter Hashtags

WordPress plugin Auto Twitter Hashtags scored83%from 54 tests.

About plugin

  • Plugin page: auto-twitter-hash...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 17, 2016
  • Latest release: Apr 18, 2018
  • Number of updates: 11
  • Update frequency: every 66.6 days
  • Top authors: kayleighthorpe (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.34MB] [CPU: ▼20.80ms] Passed 4 tests

Server-side resources used by Auto Twitter Hashtags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0334.01 ▼2.33
Dashboard /wp-admin3.31 ▼0.0445.41 ▼17.70
Posts /wp-admin/edit.php3.36 ▲0.0044.84 ▼4.29
Add New Post /wp-admin/post-new.php4.60 ▼1.2942.18 ▼58.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▲3.01

Server storage [IO: ▲0.00MB] [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
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Auto Twitter Hashtags: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.241.81 ▲0.1142.81 ▲1.07
Dashboard /wp-admin2,203 ▲124.87 ▼0.01112.68 ▲4.6043.50 ▲3.66
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0238.81 ▲1.3734.66 ▲1.94
Add New Post /wp-admin/post-new.php1,533 ▲1923.35 ▲5.66658.50 ▼13.8757.06 ▲1.84
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0598.82 ▼5.2641.07 ▼3.46

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

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-twitter-hashtags/autotwitterhashtags.php on line 11
    • > PHP Warning
      require_once(ABSPATHWPINC/post.php): failed to open stream: No such file or directory in wp-content/plugins/auto-twitter-hashtags/autotwitterhashtags.php on line 11
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-twitter-hashtags/autotwitterhashtags.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/post.php' (include_path='.:/usr/share/php') in wp-content/plugins/auto-twitter-hashtags/autotwitterhashtags.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

auto-twitter-hashtags/autotwitterhashtags.php 85% from 13 tests

The primary PHP file in "Auto Twitter Hashtags" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-twitter-hashtags.php" instead of "autotwitterhashtags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1401680

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin