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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 37.09 ▲9.28 |
Dashboard /wp-admin | 3.06 ▲0.00 | 38.76 ▼7.02 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.82 ▲7.89 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.25 ▼569.44 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.85 ▲0.43 | 9.39 ▲1.61 | 57.53 ▲6.33 |
Dashboard /wp-admin | 2,989 ▲58 | 5.93 ▼0.19 | 133.78 ▼2.53 | 113.53 ▼5.39 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 65.09 ▲0.44 | 83.82 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,498 ▼0 | 18.84 ▲0.01 | 373.84 ▼23.50 | 113.43 ▼0.88 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▼0.03 | 148.06 ▼9.55 | 123.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
- > 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 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 1,003 | 5,252 | 4,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 code | 0.32 |
Average class complexity | 5.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 127 | |
▷ Abstract classes | 4 | 3.15% |
▷ Concrete classes | 123 | 96.85% |
▷ Final classes | 0 | 0.00% |
Methods | 529 | |
▷ Static methods | 73 | 13.80% |
▷ Public methods | 428 | 80.91% |
▷ Protected methods | 15 | 2.84% |
▷ Private methods | 86 | 16.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 86 | |
▷ Global constants | 6 | 6.98% |
▷ Class constants | 80 | 93.02% |
▷ Public constants | 80 | 100.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