84% connect-pocket-to-website

Code Review | Connect Pocket To Website

WordPress plugin Connect Pocket To Website scored 84% from 54 tests.

About plugin

  • Plugin page: connect-pocket-to...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2022
  • Latest release: Nov 25, 2022
  • Number of updates: 6
  • Update frequency: every 61.7 days
  • Top authors: Jean-David (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 810 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.56 ▼2.73
Dashboard /wp-admin3.46 ▲0.1645.87 ▼6.45
Posts /wp-admin/edit.php3.56 ▲0.2047.56 ▼4.66
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.27 ▼5.48
Media Library /wp-admin/upload.php3.34 ▲0.1136.85 ▲3.30
Connect Pocket To Website /wp-admin/options-general.php?page=connect-pocket-to-website3.3034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.30 ▼1.111.55 ▼0.1140.43 ▲1.64
Dashboard /wp-admin2,214 ▲234.83 ▼1.07113.93 ▲11.8441.92 ▼0.44
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0039.25 ▼0.5034.98 ▼0.48
Add New Post /wp-admin/post-new.php1,534 ▲123.12 ▼0.04638.00 ▼66.9357.94 ▲6.24
Media Library /wp-admin/upload.php1,399 ▲144.18 ▼0.0494.36 ▼14.8741.69 ▼3.52
Connect Pocket To Website /wp-admin/options-general.php?page=connect-pocket-to-website7982.0226.6126.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP7101104501
JavaScript13019
CSS11018

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 code0.20
Average class complexity8.80
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2990.62%
▷ Protected methods00.00%
▷ Private methods39.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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