Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/twitter-itfoundation/index.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; Posts_From_Twitter has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.33ms] Passed 4 tests
A check of server-side resources used by twitter it foundation widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.09 ▼36.91 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.78 ▼47.05 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.94 ▼44.29 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.63 ▼89.08 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.45 ▼30.56 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_postsfromcat-widget |
Browser metrics Passed 4 tests
Checking browser requirements for twitter it foundation widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.23 | 1.55 ▼0.03 | 43.99 ▲2.46 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.05 | 85.43 ▼10.57 | 38.69 ▼5.64 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 32.57 ▼3.42 | 33.66 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▼0.25 | 670.37 ▲30.66 | 53.74 ▼2.38 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.03 | 97.52 ▼2.70 | 42.46 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/twitter-itfoundation/index.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; Posts_From_Twitter has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_postsfromcat-widget
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/twitter-itfoundation/codebird.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-itfoundation/index.php:29
- > 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 errors were detected
Optimizations
Plugin configuration 96% 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
3 plugin tags: widget, twitter, feeds
twitter-itfoundation/index.php 92% from 13 tests
Analyzing the main PHP file in "twitter it foundation widget" version 1.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("twitter-itfoundation.php" instead of "index.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
Success! There were no dangerous files found in this plugin797 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 117 | 305 | 796 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 15 | 60.00% |
▷ Protected methods | 8 | 32.00% |
▷ Private methods | 2 | 8.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin