10% wurfl-capabilities

Code Review | WURFL Capabilities

WordPress plugin WURFL Capabilities scored 10% from 54 tests.

About plugin

  • Plugin page: wurfl-capabilities
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 19, 2013
  • Latest release: Mar 21, 2013
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: bmsterling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 840 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼0.00MB] [CPU: ▼144.16ms] Passed 4 tests

A check of server-side resources used by WURFL Capabilities
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0037.09 ▲9.28
Dashboard /wp-admin3.06 ▲0.0038.76 ▼7.02
Posts /wp-admin/edit.php3.11 ▲0.0043.82 ▲7.89
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.25 ▼569.44
Media Library /wp-admin/upload.php3.00 ▼0.0129.41 ▼8.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WURFL Capabilities
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.85 ▲0.439.39 ▲1.6157.53 ▲6.33
Dashboard /wp-admin2,989 ▲585.93 ▼0.19133.78 ▼2.53113.53 ▼5.39
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0065.09 ▲0.4483.82 ▼2.55
Add New Post /wp-admin/post-new.php1,498 ▼018.84 ▲0.01373.84 ▼23.50113.43 ▼0.88
Media Library /wp-admin/upload.php1,810 ▼05.03 ▼0.03148.06 ▼9.55123.94 ▲4.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 96× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/PanasonicHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'WURFL_DeviceRepository' not found in wp-content/plugins/wurfl-capabilities/WURFL/CustomDeviceRepository.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'WURFL_Request_UserAgentNormalizer_Interface' not found in wp-content/plugins/wurfl-capabilities/WURFL/Request/UserAgentNormalizer/Specific/Opera.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'WURFL_Request_UserAgentNormalizer_Interface' not found in wp-content/plugins/wurfl-capabilities/WURFL/Request/UserAgentNormalizer/Generic/YesWAP.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/SPVHandler.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'WURFL_Reloader_Interface' not found in wp-content/plugins/wurfl-capabilities/WURFL/Reloader/DefaultWURFLReloader.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/BotCrawlerTranscoderHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/KonquerorHandler.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/MotorolaHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WURFL_Handlers_Handler' not found in wp-content/plugins/wurfl-capabilities/WURFL/Handlers/ToshibaHandler.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mobile, theme, wurfl, capabilites

wurfl-capabilities/wurfl-capabilities.php Passed 13 tests

The primary PHP file in "WURFL Capabilities" version 0.3.4 is used by WordPress to initiate all plugin functionality
57 characters long description:
Using WURFL to expose capabilities of your users browser.

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
There were no executable files found in this plugin4,465 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP1371,0035,2524,465

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.32
Average class complexity5.37
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces9
Traits0
Classes127
▷ Abstract classes43.15%
▷ Concrete classes12396.85%
▷ Final classes00.00%
Methods529
▷ Static methods7313.80%
▷ Public methods42880.91%
▷ Protected methods152.84%
▷ Private methods8616.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants86
▷ Global constants66.98%
▷ Class constants8093.02%
▷ Public constants80100.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 are no PNG files in this plugin