Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼147.69ms] Passed 4 tests
An overview of server-side resources used by Share Target
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.16 | 36.43 ▲12.29 |
Dashboard /wp-admin | 3.11 ▲0.05 | 47.38 ▼5.34 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 44.68 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 91.88 ▼579.27 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.85 ▼1.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Share Target
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.79 ▼0.20 | 7.94 ▼2.10 | 48.87 ▼4.06 |
Dashboard /wp-admin | 2,985 ▲54 | 5.89 ▼0.20 | 143.13 ▼0.98 | 108.79 ▼4.43 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.68 ▲0.00 | 69.16 ▲0.27 | 97.92 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,681 ▼2 | 18.88 ▲0.08 | 372.41 ▼12.77 | 123.97 ▲10.39 |
Media Library /wp-admin/upload.php | 1,822 ▲12 | 5.02 ▲0.00 | 172.53 ▲6.38 | 127.07 ▲0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_Share_Target\\Registerable' not found in wp-content/plugins/share-target/inc/Plugin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/share-target/share-target.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_Share_Target\\Registerable' not found in wp-content/plugins/share-target/inc/Web_App_Manifest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_Share_Target\\Registerable' not found in wp-content/plugins/share-target/inc/Service_Worker.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_Share_Target\\Registerable' not found in wp-content/plugins/share-target/inc/Editor.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: web, sharing, api, progressive, image...
share-target/share-target.php 92% from 13 tests
The main file in "Share Target" v. 1.0.0-beta.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0.0-beta.1")
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 detected251 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 59 | 285 | 249 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin