84% karlog-it-save-for-later

Code Review | Karlog-IT - Save for Later

WordPress plugin Karlog-IT - Save for Later scored84%from 54 tests.

About plugin

  • Plugin page: karlog-it-save-fo...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Mar 3, 2021
  • Number of updates: 8
  • Update frequency: every 20.0 days
  • Top authors: karlogitlea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.38ms] Passed 4 tests

Analyzing server-side resources used by Karlog-IT - Save for Later
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.93 ▲1.87
Dashboard /wp-admin3.40 ▲0.0648.12 ▼9.97
Posts /wp-admin/edit.php3.52 ▲0.1644.03 ▼3.97
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.58 ▼15.47
Media Library /wp-admin/upload.php3.33 ▲0.1035.27 ▼0.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Karlog-IT - Save for Later
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.67 ▼0.751.88 ▲0.0944.16 ▲3.05
Dashboard /wp-admin2,206 ▲144.84 ▼0.07104.17 ▼8.3639.33 ▼3.91
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0236.12 ▼6.6432.49 ▼1.88
Add New Post /wp-admin/post-new.php1,544 ▲218.19 ▲0.20590.51 ▼12.6053.99 ▲1.58
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.0699.08 ▼0.3542.94 ▼1.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/karlog-it-save-for-later/karlog-it-save-for-later.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
2 plugin tags: karlog-it, woocommerce

karlog-it-save-for-later/karlog-it-save-for-later.php Passed 13 tests

"Karlog-IT - Save for Later" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Extended WooCommerce with Save for Later

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected734 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP16242173670
PO File18931
JSON20022
Markdown13011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.20
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1937.25%
▷ Public methods4588.24%
▷ Protected methods00.00%
▷ Private methods611.76%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants150.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
PNG images were not found in this plugin