84% slippy

Code Review | Slippy

WordPress plugin Slippy scored84%from 54 tests.

About plugin

  • Plugin page: slippy
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 8
  • Update frequency: every 20.6 days
  • Top authors: lmnhq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼11.70ms] Passed 4 tests

Server-side resources used by Slippy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.05 ▼16.08
Dashboard /wp-admin3.43 ▲0.1246.71 ▼3.43
Posts /wp-admin/edit.php3.54 ▲0.1843.15 ▼2.14
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.44 ▼25.15
Media Library /wp-admin/upload.php3.34 ▲0.1237.65 ▲4.62
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=slipnote3.3430.27
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=slipnote3.3439.30
Add New /wp-admin/post-new.php?post_type=slipnote3.4858.49
All Slip Notes /wp-admin/edit.php?post_type=slipnote3.4038.79

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
category_children
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Slippy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲16913.23 ▼1.401.64 ▼0.1837.02 ▼6.57
Dashboard /wp-admin2,304 ▲1164.94 ▲0.04112.87 ▼5.6543.59 ▼3.98
Posts /wp-admin/edit.php2,128 ▲392.04 ▲0.0036.06 ▼1.5332.66 ▼1.94
Add New Post /wp-admin/post-new.php1,707 ▲16922.26 ▼0.88634.24 ▼39.9630.20 ▼23.63
Media Library /wp-admin/upload.php1,454 ▲664.28 ▲0.0198.63 ▼5.1541.76 ▼2.82
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=slipnote1,3752.3032.5831.15
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=slipnote1,5132.3134.5833.63
Add New /wp-admin/post-new.php?post_type=slipnote2,4147.88174.5059.33
All Slip Notes /wp-admin/edit.php?post_type=slipnote1,1701.9930.9529.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • category_children
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LMNHQ\\WP\\Plugin\\is_admin() in wp-content/plugins/slippy/class-slippy.php:585

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: zettelkasten, lmnhq, slipbox, notes

slippy/class-slippy.php 92% from 13 tests

This is the main PHP file of "Slippy" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slippy.php" instead of "class-slippy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin477 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP178133376
JavaScript113164
CSS110037

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected