Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.94ms] Passed 4 tests
A check of server-side resources used by azurecurve Mobile Detection
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.71 ▼2.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.31 ▼0.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 55.24 ▲5.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.53 ▼11.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.16 ▲2.70 |
Mobile Detection /wp-admin/admin.php?page=azc-md | 3.20 | 38.74 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 3.20 | 36.47 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by azurecurve Mobile Detection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲107 | 14.42 ▲0.13 | 2.11 ▲0.15 | 46.58 ▼2.44 |
Dashboard /wp-admin | 2,249 ▲46 | 5.82 ▲0.92 | 120.70 ▲0.34 | 101.70 ▲58.16 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.00 ▼0.04 | 40.05 ▲2.21 | 37.80 ▲5.71 |
Add New Post /wp-admin/post-new.php | 1,555 ▲1 | 23.04 ▲5.01 | 655.06 ▼10.87 | 76.24 ▲6.65 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.24 ▼0.01 | 114.17 ▼17.46 | 85.50 ▲37.30 |
Mobile Detection /wp-admin/admin.php?page=azc-md | 1,004 | 2.01 | 29.25 | 31.35 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 861 | 2.01 | 26.79 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-mobile-detection/includes/menu.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-mobile-detection/includes/menu.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
azurecurve-mobile-detection/azurecurve-mobile-detection.php 77% from 13 tests
The primary PHP file in "azurecurve Mobile Detection" version 2.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 312 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Success! There were no dangerous files found in this plugin1,132 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 238 | 707 | 1,116 |
CSS | 1 | 0 | 2 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 9 | 25.00% |
▷ Public methods | 33 | 91.67% |
▷ Protected methods | 2 | 5.56% |
▷ Private methods | 1 | 2.78% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Favicon-16x16.png | 0.40KB | 0.34KB | ▼ 14.81% |