10% save-for-later-like-amazon

Code Review | Save For Later Like Amazon

WordPress plugin Save For Later Like Amazon scored10%from 54 tests.

About plugin

  • Plugin page: save-for-later-li...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Feb 12, 2020
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: kabeers011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/save-for-later-like-amazon/core.php+37
    Undefined variable: charset_collate

Server metrics [RAM: ▲0.16MB] [CPU: ▼6.53ms] Passed 4 tests

A check of server-side resources used by Save For Later Like Amazon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1641.69 ▼3.67
Dashboard /wp-admin3.46 ▲0.1549.59 ▼1.22
Posts /wp-admin/edit.php3.57 ▲0.2150.71 ▼3.24
Add New Post /wp-admin/post-new.php6.06 ▲0.1786.85 ▼18.00
Media Library /wp-admin/upload.php3.38 ▲0.1537.59 ▼0.48
Settings /wp-admin/admin.php?page=settings-for-later-like-amazon3.3232.02
Save For Later Like Amazon /wp-admin/admin.php?page=shop-for-later3.3238.79

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 14 new options
New tables
wp_save_for_later
New WordPress options
get_option_save_for_list
api_url_for_activation
enable_disable_plugin
server_allow
requested_activation_key
user_end_code_to_check
db_upgraded
can_compress_scripts
widget_recent-posts
kbiz_activation_key
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Save For Later Like Amazon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.41 ▲0.031.68 ▼0.3637.55 ▼4.07
Dashboard /wp-admin2,257 ▲515.82 ▼0.03100.01 ▼6.3141.97 ▼3.03
Posts /wp-admin/edit.php2,133 ▲302.18 ▲0.2139.24 ▲0.6835.73 ▼1.73
Add New Post /wp-admin/post-new.php1,557 ▲1723.06 ▲4.68655.93 ▲23.7855.43 ▼3.56
Media Library /wp-admin/upload.php1,433 ▲364.25 ▲0.02101.13 ▲2.1443.09 ▲1.85
Settings /wp-admin/admin.php?page=settings-for-later-like-amazon7301.537.0325.96
Save For Later Like Amazon /wp-admin/admin.php?page=shop-for-later7101.357.0622.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_save_for_later
  • Zombie WordPress options detected upon uninstall: 14 options
    • kbiz_activation_key
    • widget_theysaidso_widget
    • server_allow
    • enable_disable_plugin
    • theysaidso_admin_options
    • user_end_code_to_check
    • kbiz_registration_email
    • widget_recent-comments
    • get_option_save_for_list
    • db_upgraded
    • ...

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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Woo\\SaveForLater\\plugin_dir_url() in wp-content/plugins/save-for-later-like-amazon/core.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Woo\\SaveForLater\\plugin_dir_url() in wp-content/plugins/save-for-later-like-amazon/core.php:5

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt might help

save-for-later-like-amazon/woo-save-for-later-like-amazon.php 77% from 13 tests

Analyzing the main PHP file in "Save For Later Like Amazon" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("save-for-later-like-amazon.php" instead of "woo-save-for-later-like-amazon.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin706 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP317181536
JavaScript13814116
CSS22354

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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