84% klipse

Code Review | Klipse

WordPress plugin Klipse scored84%from 54 tests.

About plugin

  • Plugin page: klipse
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Mar 25, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: viebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.51ms] Passed 4 tests

An overview of server-side resources used by Klipse
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.19 ▼6.81
Dashboard /wp-admin3.31 ▲0.0141.29 ▼5.27
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.19 ▼4.18
Media Library /wp-admin/upload.php3.23 ▲0.0032.13 ▼5.77

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

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

Browser metrics Passed 4 tests

Klipse: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.85 ▲0.4747.02 ▲45.4736.14 ▼5.18
Dashboard /wp-admin2,209 ▲324.82 ▼0.24115.13 ▲8.9542.93 ▼6.49
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.1441.27 ▲2.6436.00 ▼4.59
Add New Post /wp-admin/post-new.php1,533 ▼223.22 ▲0.12594.31 ▼11.0955.60 ▲2.52
Media Library /wp-admin/upload.php1,385 ▲64.21 ▲0.0295.76 ▼5.4840.98 ▼4.41

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klipse/klipse.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: interactive, javsascript, code, snippets

klipse/klipse.php Passed 13 tests

Analyzing the main PHP file in "Klipse" version 0.0.1
48 characters long description:
Embed Interactive Code Snippets in your articles

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin