10% wp-accessible

Code Review | WP Accessible Twitter Feed

WordPress plugin WP Accessible Twitter Feed scored 10% from 54 tests.

About plugin

  • Plugin page: wp-accessible
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 5.8.1
  • First release: Nov 11, 2012
  • Latest release: Jul 6, 2016
  • Number of updates: 26
  • Update frequency: every 51.5 days
  • Top authors: rianrietveld (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 2,536 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.96 ▼0.766.87 ▼14.23
Dashboard /wp-admin1.98 ▼1.077.32 ▼38.32
Posts /wp-admin/edit.php1.98 ▼1.137.95 ▼37.91
Add New Post /wp-admin/post-new.php1.98 ▼3.456.97 ▼637.42
Media Library /wp-admin/upload.php1.98 ▼1.028.09 ▼30.00
Twitter Feed Auth /wp-admin/options-general.php?page=wpacc_tdf_settings1.987.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.90 ▲0.458.02 ▼1.2051.11 ▲6.76
Dashboard /wp-admin2,978 ▲415.96 ▼0.05155.03 ▲6.68103.45 ▼13.51
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.1362.80 ▼5.0381.70 ▼6.14
Add New Post /wp-admin/post-new.php1,679 ▲17918.88 ▲0.33409.34 ▲8.20102.60 ▼7.94
Media Library /wp-admin/upload.php1,815 ▲645.03 ▲0.02152.80 ▲16.19121.06 ▲5.89
Twitter Feed Auth /wp-admin/options-general.php?page=wpacc_tdf_settings1,0642.0656.0573.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP8283420960
PO File1163037

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 code0.27
Average class complexity9.57
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes00.00%
Methods88
▷ Static methods1011.36%
▷ Public methods7281.82%
▷ Protected methods22.27%
▷ Private methods1415.91%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin