Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.89ms] Passed 4 tests
A check of server-side resources used by AXP Browser Settings
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 26.65 ▼14.37 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.15 ▼4.81 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 39.21 ▼7.86 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.39 ▼4.50 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.60 ▲0.05 |
Browser Settings /wp-admin/options-general.php?page=axp-browser-settings | 3.23 | 31.20 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for AXP Browser Settings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 13.31 ▼1.07 | 1.57 ▼0.13 | 38.16 ▼7.33 |
Dashboard /wp-admin | 2,215 ▲38 | 5.70 ▲0.07 | 85.15 ▼4.62 | 37.62 ▼4.46 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.26 ▲0.26 | 34.58 ▼12.45 | 31.03 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,543 ▲12 | 23.34 ▲0.19 | 674.36 ▲5.49 | 38.29 ▼26.56 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.53 ▲0.32 | 104.89 ▲5.67 | 45.29 ▼3.65 |
Browser Settings /wp-admin/options-general.php?page=axp-browser-settings | 1,021 | 2.37 | 47.19 | 36.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=axp-browser-settings
- > Notice in wp-content/plugins/axp-browser-settings/axp-browser-settings.php+170
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/axp-browser-settings/axp-browser-settings.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Topbar example in Android Chrome [developers.google.com](https://developers.google.com/web/fundamentals/design-and-ui/browser-customization/theme-color))
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
axp-browser-settings/axp-browser-settings.php Passed 13 tests
Analyzing the main PHP file in "AXP Browser Settings" version 1.0.0
38 characters long description:
Plug-in for your browser on your phone
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected243 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 21 | 180 |
PO File | 1 | 18 | 18 | 55 |
Markdown | 1 | 1 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 85.50KB | 34.87KB | ▼ 59.21% |