Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▲3.78ms] Passed 4 tests
Analyzing server-side resources used by WP Pocket URLs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 47.50 ▲8.88 |
Dashboard /wp-admin | 3.74 ▲0.39 | 54.46 ▼4.76 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 56.16 ▲10.40 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.36 | 90.45 ▲1.13 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 42.90 ▲9.86 |
All Links /wp-admin/edit.php?post_type=wp_pocketurl_link | 3.62 | 45.47 |
Other Plugins /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_other | 3.56 | 37.70 |
Reports /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_reports | 3.58 | 42.17 |
Settings /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_settings | 3.56 | 39.30 |
Add New /wp-admin/post-new.php?post_type=wp_pocketurl_link | 3.67 | 50.05 |
Link Categories /wp-admin/edit-tags.php?taxonomy=wp_pocketurl_link_category&post_type=wp_pocketurl_link | 3.59 | 48.65 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pocketurl_clicks |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Pocket URLs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 14.35 ▼0.27 | 1.78 ▲0.19 | 42.32 ▲0.57 |
Dashboard /wp-admin | 2,293 ▲113 | 5.55 ▼0.05 | 81.72 ▼4.49 | 38.81 ▼4.40 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.09 ▲0.13 | 36.40 ▼0.40 | 32.21 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.36 ▲0.41 | 655.68 ▼2.09 | 51.03 ▼1.68 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.20 ▲0.03 | 99.46 ▼0.86 | 42.45 ▼3.40 |
All Links /wp-admin/edit.php?post_type=wp_pocketurl_link | 1,142 | 1.93 | 31.07 | 30.99 |
Other Plugins /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_other | 988 | 2.06 | 25.05 | 28.89 |
Reports /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_reports | 1,007 | 4.86 | 44.50 | 44.32 |
Settings /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_settings | 1,001 | 1.81 | 27.90 | 28.55 |
Add New /wp-admin/post-new.php?post_type=wp_pocketurl_link | 1,690 | 2.60 | 52.54 | 62.47 |
Link Categories /wp-admin/edit-tags.php?taxonomy=wp_pocketurl_link_category&post_type=wp_pocketurl_link | 1,325 | 2.24 | 28.37 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant wp_pocketurl_path - assumed 'wp_pocketurl_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-pocket-urls/assets/views/clicks_details.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'wp_pocketurl_pathclasses/class-wp-pocketurl-clicks.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-pocket-urls/assets/views/clicks_details.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-pocket-urls/assets/views/other.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-pocket-urls/assets/views/link-options.php:2
- > PHP Warning
require_once(wp_pocketurl_pathclasses/class-wp-pocketurl-clicks.php): failed to open stream: No such file or directory in wp-content/plugins/wp-pocket-urls/assets/views/clicks_details.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-pocket-urls/assets/views/single-wp_pocketurl_link.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-pocket-urls/assets/views/reports.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-pocket-urls/assets/views/settings.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=wp_pocketurl_link&page=wp_pocketurl_link_reports
- > Network (severe)
wp-content/plugins/wp-pocket-urls/assets/js/reports.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 31 tag instead of maximum 10
wp-pocket-urls/wp-pocketurl.php 85% from 13 tests
The primary PHP file in "WP Pocket URLs" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-pocket-urls.php" instead of "wp-pocketurl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,716 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 112 | 231 | 1,555 |
CSS | 1 | 1 | 0 | 98 |
JavaScript | 2 | 5 | 1 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 5 | 7.25% |
▷ Public methods | 66 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.35% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin