Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-accessible/lib/widgets/wpacc-accessible-twitter-feed-widget.php+185
Function create_function() is deprecated
Server metrics [RAM: ▼1.67MB] [CPU: ▼185.91ms] Passed 4 tests
This is a short check of server-side resources used by WP Accessible Twitter Feed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.96 ▼0.76 | 6.87 ▼14.23 |
Dashboard /wp-admin | 1.98 ▼1.07 | 7.32 ▼38.32 |
Posts /wp-admin/edit.php | 1.98 ▼1.13 | 7.95 ▼37.91 |
Add New Post /wp-admin/post-new.php | 1.98 ▼3.45 | 6.97 ▼637.42 |
Media Library /wp-admin/upload.php | 1.98 ▼1.02 | 8.09 ▼30.00 |
Twitter Feed Auth /wp-admin/options-general.php?page=wpacc_tdf_settings | 1.98 | 7.92 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wpacc-latest-tweets |
Browser metrics Passed 4 tests
WP Accessible Twitter Feed: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.90 ▲0.45 | 8.02 ▼1.20 | 51.11 ▲6.76 |
Dashboard /wp-admin | 2,978 ▲41 | 5.96 ▼0.05 | 155.03 ▲6.68 | 103.45 ▼13.51 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.13 | 62.80 ▼5.03 | 81.70 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,679 ▲179 | 18.88 ▲0.33 | 409.34 ▲8.20 | 102.60 ▼7.94 |
Media Library /wp-admin/upload.php | 1,815 ▲64 | 5.03 ▲0.02 | 152.80 ▲16.19 | 121.06 ▲5.89 |
Twitter Feed Auth /wp-admin/options-general.php?page=wpacc_tdf_settings | 1,064 | 2.06 | 56.05 | 73.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-accessible/lib/widgets/wpacc-accessible-twitter-feed-widget.php+185
Function create_function() is deprecated
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpacc_tdf_settings
- > Deprecated in wp-content/plugins/wp-accessible/lib/widgets/wpacc-accessible-twitter-feed-widget.php+185
Function create_function() is deprecated
SRP 50% 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-accessible/lib/widgets/wpacc-twitter-oauth-settings.php:6
- > PHP Warning
require_once(WPACC_PATHlib/widgets/wpacc-accessible-twitter-feed-widget.php): failed to open stream: No such file or directory in wp-content/plugins/wp-accessible/lib/init.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-accessible/wp-accessible.php:32
- > PHP Warning
Use of undefined constant WPACC_PATH - assumed 'WPACC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-accessible/lib/init.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-accessible/lib/widgets/wpacc-twitter-oauth-settings.php:6
- > PHP Fatal error
require_once(): Failed opening required 'WPACC_PATHlib/widgets/wpacc-accessible-twitter-feed-widget.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-accessible/lib/init.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: accessibility, a11y, twitter, wcag 2, tweets...
wp-accessible/wp-accessible.php Passed 13 tests
The main PHP script in "WP Accessible Twitter Feed" version 1.2 is automatically included on every request by WordPress
73 characters long description:
This plugin adds an accessible Twitter feed widget compliant with WCAG 2.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin997 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 283 | 420 | 960 |
PO File | 1 | 16 | 30 | 37 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 10 | 11.36% |
▷ Public methods | 72 | 81.82% |
▷ Protected methods | 2 | 2.27% |
▷ Private methods | 14 | 15.91% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin