73% denakop

Code Review | Denakop Plugin

WordPress plugin Denakop Plugin scored73%from 54 tests.

About plugin

  • Plugin page: denakop
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Dec 16, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: gurodrigues (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by Denakop Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.61 ▼3.27
Dashboard /wp-admin3.35 ▲0.0549.22 ▼0.51
Posts /wp-admin/edit.php3.40 ▲0.0444.52 ▼3.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.56 ▼15.10
Media Library /wp-admin/upload.php3.27 ▲0.0434.23 ▲0.86
Denakop /wp-admin/options-general.php?page=denakop-setting-admin3.2132.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Denakop Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.24 ▼1.322.08 ▲0.3445.79 ▲5.29
Dashboard /wp-admin2,209 ▲184.89 ▲0.01110.01 ▲7.8044.58 ▼0.08
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0634.19 ▼2.7334.47 ▼2.68
Add New Post /wp-admin/post-new.php1,533 ▲1423.31 ▲0.16672.17 ▲35.6949.21 ▼2.84
Media Library /wp-admin/upload.php1,394 ▲64.19 ▼0.0495.82 ▼2.2439.51 ▼3.69
Denakop /wp-admin/options-general.php?page=denakop-setting-admin8542.0523.9228.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=denakop-setting-admin
    • > Notice in wp-content/plugins/denakop/denakop.php+188
    Trying to access array offset on value of type bool

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/denakop/denakop.php:223

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/options-general.php?page=denakop-setting-admin
    • > Network (severe)
    wp-content/plugins/denakop/assets/admin-style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=denakop-setting-admin
    • > Network (severe)
    wp-content/plugins/denakop/assets/denakop-logo.png - 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

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
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

denakop/denakop.php Passed 13 tests

Analyzing the main PHP file in "Denakop Plugin" version 1.0.0
55 characters long description:
A plugin that installs the denakop tag on your website.

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
There were no executable files found in this plugin303 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13048209
JavaScript19146
PO File1111637
JSON11011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin