77% klipspringer

Code Review | Klipspringer

WordPress plugin Klipspringer scored 77% from 54 tests.

About plugin

  • Plugin page: klipspringer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Apr 18, 2013
  • Number of updates: 31
  • Update frequency: every 0.1 days
  • Top authors: stacigh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,504 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.89ms] Passed 4 tests

A check of server-side resources used by Klipspringer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0232.46 ▼10.80
Dashboard /wp-admin3.36 ▲0.0649.35 ▼4.28
Posts /wp-admin/edit.php3.41 ▲0.0645.84 ▼2.53
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.16 ▼5.95
Media Library /wp-admin/upload.php3.29 ▲0.0636.03 ▲3.83
Klipspringer Options /wp-admin/options-general.php?page=ssklip_options3.2632.98

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
ssklip_settings_appearance
theysaidso_admin_options
widget_theysaidso_widget
ssklip_settings_closebutton
ssklip_settings_accessibility

Browser metrics Passed 4 tests

This is an overview of browser requirements for Klipspringer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▲26313.67 ▼0.686.61 ▲4.7841.73 ▼7.64
Dashboard /wp-admin2,210 ▲185.83 ▲0.7697.31 ▼13.6038.07 ▼8.53
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0235.97 ▲1.6132.45 ▼2.01
Add New Post /wp-admin/post-new.php1,537 ▲1722.92 ▼0.17643.00 ▼83.3353.97 ▲0.56
Media Library /wp-admin/upload.php1,392 ▲74.30 ▲0.1396.14 ▼8.0142.41 ▼3.57
Klipspringer Options /wp-admin/options-general.php?page=ssklip_options8522.0623.9323.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/klipspringer/includes/widget-content-col1.php
    • > /wp-content/plugins/klipspringer/includes/widget-content-col3.php
    • > /wp-content/plugins/klipspringer/includes/widget-content-col2.php
    • > /wp-content/plugins/klipspringer/includes/widget-content-col4.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/klipspringer/includes/admin-documentation.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/klipspringer/includes/admin-page3.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/klipspringer/includes/admin-appearance.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klipspringer/includes/admin-page2.php:224
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klipspringer/includes/admin-page.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klipspringer/includes/scripts.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klipspringer/klipspringer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/klipspringer/includes/admin-accessibility.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klipspringer/includes/display-functions.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/klipspringer/includes/admin-closebutton.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === klipspringer === )
  • Donate link: Invalid url: ""
  • Screenshots: These screenshots need descriptions #2, #3 in klipspringer/assets to your readme.txt
  • Tags: You are using too many tags: 30 tag instead of maximum 10
You can look at the official readme.txt

klipspringer/klipspringer.php Passed 13 tests

The main PHP script in "Klipspringer" version 1.0 is automatically included on every request by WordPress
53 characters long description:
Dropdown widget area for storing usefull information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,567 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP19218831,326
CSS2355217
JavaScript27824

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.98MB with 1.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/05-menu-item-class-name.png48.46KB14.29KB▼ 70.51%
includes/img/04-show-classes-box.png58.99KB20.21KB▼ 65.73%
screenshot-3.png351.74KB180.30KB▼ 48.74%
includes/img/01-upload-plugin.png61.03KB19.67KB▼ 67.78%
includes/img/06-add-class-to-existing-button.png79.84KB26.51KB▼ 66.79%