84% cyklodev-wp-settings

Code Review | Cyklodev WP Settings

WordPress plugin Cyklodev WP Settings scored84%from 54 tests.

About plugin

  • Plugin page: cyklodev-wp-settings
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2014
  • Latest release: Jul 21, 2020
  • Number of updates: 16
  • Update frequency: every 148.7 days
  • Top authors: zephilou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /946 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.45ms] Passed 4 tests

Server-side resources used by Cyklodev WP Settings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.34 ▼2.90
Dashboard /wp-admin3.31 ▲0.0149.36 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0148.35 ▼4.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.35 ▼5.26
Media Library /wp-admin/upload.php3.24 ▲0.0140.15 ▲3.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cyklodev WP Settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.35 ▲0.011.77 ▼0.2044.75 ▲0.48
Dashboard /wp-admin2,215 ▲385.72 ▼0.0793.77 ▼5.7241.85 ▲0.18
Posts /wp-admin/edit.php2,120 ▲232.01 ▼0.1535.40 ▼4.3634.30 ▼4.27
Add New Post /wp-admin/post-new.php1,543 ▲1523.13 ▼0.13645.13 ▲18.7170.56 ▲20.33
Media Library /wp-admin/upload.php1,417 ▲174.22 ▲0.0898.05 ▼11.7544.80 ▼3.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cyklodev-wp-settings/views/settings.php
    • > /wp-content/plugins/cyklodev-wp-settings/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: core, settings, update notification, gutemberg, login...

cyklodev-wp-settings/index.php 92% from 13 tests

"Cyklodev WP Settings" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cyklodev-wp-settings.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin218 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24326141
CSS1131169
JavaScript1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/cyklodev.png12.79KB6.17KB▼ 51.73%