10% santechno-twitter

Code Review | SANTechno Twitter Plugins

WordPress plugin SANTechno Twitter Plugins scored 10% from 54 tests.

About plugin

  • Plugin page: santechno-twitter
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.8.1
  • First release: Jan 19, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 11
  • Update frequency: every 30.7 days
  • Top authors: santechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 636 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/santechno-twitter/widgets/SanTwitterWidget.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; SanTwitterWidget has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼189.42ms] Passed 4 tests

Server-side resources used by SANTechno Twitter Plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.81 ▼0.919.38 ▼11.89
Dashboard /wp-admin1.83 ▼1.239.49 ▼24.59
Posts /wp-admin/edit.php1.83 ▼1.286.81 ▼37.01
Add New Post /wp-admin/post-new.php1.83 ▼3.615.39 ▼661.71
Media Library /wp-admin/upload.php1.83 ▼1.185.06 ▼34.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_santwitterwidget

Browser metrics Passed 4 tests

Checking browser requirements for SANTechno Twitter Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.95 ▲0.059.63 ▲1.7550.06 ▲3.22
Dashboard /wp-admin2,967 ▲365.89 ▲0.03161.21 ▲20.41127.28 ▲9.85
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0063.19 ▼5.9091.87 ▼1.44
Add New Post /wp-admin/post-new.php1,615 ▼6821.39 ▲2.61290.63 ▼86.90111.71 ▼1.12
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.06141.69 ▼17.27121.90 ▼8.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > Deprecated in wp-content/plugins/santechno-twitter/widgets/SanTwitterWidget.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; SanTwitterWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_santwitterwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/santechno-twitter/widgets/SanTwitterWidget.class.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/santechno-twitter/index.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/santechno-twitter/index.php:13

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: twitter, tweet, santechnologies

santechno-twitter/index.php 92% from 13 tests

This is the main PHP file of "SANTechno Twitter Plugins" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("santechno-twitter.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected824 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4125289824

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity49.50
▷ Minimum class complexity7.00
▷ Maximum class complexity92.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods1762.96%
▷ Protected methods829.63%
▷ Private methods27.41%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected