78% dessky-snippets

Code Review | Dessky Snippets

WordPress plugin Dessky Snippets scored 78% from 54 tests.

About plugin

  • Plugin page: dessky-snippets
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.0.0
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Jun 3, 2022
  • Number of updates: 7
  • Update frequency: every 270.9 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Dessky Snippets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.23 ▼4.93
Dashboard /wp-admin3.34 ▲0.0447.44 ▼3.95
Posts /wp-admin/edit.php3.39 ▲0.0448.54 ▲1.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.45 ▼9.75
Media Library /wp-admin/upload.php3.27 ▲0.0436.49 ▼0.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dessky Snippets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.134.17 ▲2.3339.53 ▼3.85
Dashboard /wp-admin2,207 ▲195.83 ▲0.94101.13 ▼16.4139.96 ▼6.71
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0240.23 ▲4.1433.82 ▼3.48
Add New Post /wp-admin/post-new.php1,536 ▲1523.12 ▲0.05633.59 ▼40.2759.40 ▼0.42
Media Library /wp-admin/upload.php1,392 ▲14.30 ▲0.0894.32 ▼10.9446.00 ▼0.04
Dessky Snippets /wp-admin/dessky-snippets.php260.440.1013.32

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dessky-snippets/core/settings.php
    • > /wp-content/plugins/dessky-snippets/dessky-snippets.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/dessky-snippets.php
    • > Network (severe)
    wp-admin/dessky-snippets.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

dessky-snippets/dessky-snippets.php Passed 13 tests

The entry point to "Dessky Snippets" version 1.1 is a PHP file that has certain tags in its header comment area
123 characters long description:
This is a lightweight and simple plugin that gives you the ability to easily add your custom PHP code from WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected479 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS24430277
PHP257129169
JavaScript281923
Markdown12010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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