Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼4.83ms] Passed 4 tests
Server-side resources used by Connect Pocket To Website
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.56 ▼2.73 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.87 ▼6.45 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.56 ▼4.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.27 ▼5.48 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.85 ▲3.30 |
Connect Pocket To Website /wp-admin/options-general.php?page=connect-pocket-to-website | 3.30 | 34.96 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
cptw_list |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connect Pocket To Website
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.30 ▼1.11 | 1.55 ▼0.11 | 40.43 ▲1.64 |
Dashboard /wp-admin | 2,214 ▲23 | 4.83 ▼1.07 | 113.93 ▲11.84 | 41.92 ▼0.44 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.00 | 39.25 ▼0.50 | 34.98 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.12 ▼0.04 | 638.00 ▼66.93 | 57.94 ▲6.24 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.18 ▼0.04 | 94.36 ▼14.87 | 41.69 ▼3.52 |
Connect Pocket To Website /wp-admin/options-general.php?page=connect-pocket-to-website | 798 | 2.02 | 26.61 | 26.78 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- cptw_list
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'JDD\\CPTW\\CPTWTrait' not found in wp-content/plugins/connect-pocket-to-website/classes/Callback.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connect-pocket-to-website/content/howto.php:2
- > PHP Fatal error
Trait 'JDD\\CPTW\\CPTWTrait' not found in wp-content/plugins/connect-pocket-to-website/classes/Settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connect-pocket-to-website/content/shortcode.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: reading, later, list, pocket
connect-pocket-to-website/connect-pocket-to-website.php Passed 13 tests
The main file in "Connect Pocket To Website" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
This plugin allows you to display your Pocket list into your WordPress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin538 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 101 | 104 | 501 |
JavaScript | 1 | 3 | 0 | 19 |
CSS | 1 | 1 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.38% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin