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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 9.38 ▼11.89 |
Dashboard /wp-admin | 1.83 ▼1.23 | 9.49 ▼24.59 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 6.81 ▼37.01 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.61 | 5.39 ▼661.71 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.95 ▲0.05 | 9.63 ▲1.75 | 50.06 ▲3.22 |
Dashboard /wp-admin | 2,967 ▲36 | 5.89 ▲0.03 | 161.21 ▲20.41 | 127.28 ▲9.85 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 63.19 ▼5.90 | 91.87 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.39 ▲2.61 | 290.63 ▼86.90 | 111.71 ▼1.12 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.06 | 141.69 ▼17.27 | 121.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 125 | 289 | 824 |
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 code | 0.33 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 17 | 62.96% |
▷ Protected methods | 8 | 29.63% |
▷ Private methods | 2 | 7.41% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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