Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/simpleapplinks/simpleapplinks.php+210
Undefined variable: installed_ver
Server metrics [RAM: ▼0.56MB] [CPU: ▼33.32ms] Passed 4 tests
An overview of server-side resources used by SimpleAppLinks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 40.71 ▲5.49 |
Dashboard /wp-admin | 3.38 ▲0.08 | 26.02 ▼26.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 28.88 ▼19.60 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.50 | 26.23 ▼75.64 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 24.43 ▼11.94 |
SimpleAppLinks /wp-admin/options-general.php?page=simpleapplinks-settings | 3.38 | 24.98 |
Server storage [IO: ▲0.13MB] [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: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simpleapplinks_cache |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
sal_db_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SimpleAppLinks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.26 ▼1.13 | 1.70 ▼0.11 | 37.86 ▼4.36 |
Dashboard /wp-admin | 2,210 ▲21 | 4.86 ▼0.11 | 137.59 ▲32.12 | 39.02 ▼4.93 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.02 ▼0.01 | 39.00 ▼3.09 | 34.42 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.33 ▲0.12 | 582.03 ▼100.16 | 51.40 ▼13.04 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▲0.08 | 96.12 ▼13.37 | 40.19 ▼6.29 |
SimpleAppLinks /wp-admin/options-general.php?page=simpleapplinks-settings | 800 | 2.06 | 22.50 | 25.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables detected upon uninstall: 1 table
- wp_simpleapplinks_cache
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- sal_db_version
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simpleapplinks-settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simpleapplinks/simpleapplinks.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (display Android and iOS app link)
- Donate link: Please fix this invalid URI: ""
simpleapplinks/simpleapplinks.php Passed 13 tests
The main PHP file in "SimpleAppLinks" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
add link to apps in your blog post.
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
Success! There were no dangerous files found in this plugin1,943 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 276 | 304 | 1,799 |
CSS | 1 | 18 | 9 | 85 |
PO File | 1 | 12 | 16 | 42 |
JavaScript | 1 | 0 | 0 | 13 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 124.67 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 1 | 0.85% |
▷ Public methods | 102 | 86.44% |
▷ Protected methods | 16 | 13.56% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 21 | 87.50% |
▷ Class constants | 3 | 12.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.94KB | 12.08KB | ▼ 60.98% |
images/wordpress-logo.png | 17.97KB | 9.60KB | ▼ 46.57% |