78% cyklodev-wp-notify

Code Review | Cyklodev WP Notify

WordPress plugin Cyklodev WP Notify scored78%from 54 tests.

About plugin

  • Plugin page: cyklodev-wp-notify
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2014
  • Latest release: Dec 15, 2022
  • Number of updates: 25
  • Update frequency: every 129.3 days
  • Top authors: zephilou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /997 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.01MB] [CPU: ▼5.33ms] Passed 4 tests

An overview of server-side resources used by Cyklodev WP Notify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.70 ▼2.82
Dashboard /wp-admin3.33 ▼0.0255.79 ▼8.25
Posts /wp-admin/edit.php3.38 ▲0.0348.25 ▲3.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.08 ▼11.78
Media Library /wp-admin/upload.php3.25 ▲0.0234.01 ▲1.54
Twitter /wp-admin/admin.php?page=cyklodev_notify_twitter3.2230.20
Cyklodev Notify /wp-admin/admin.php?page=cyklodev_notify3.2828.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Cyklodev WP Notify: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.72 ▲0.481.76 ▲0.2244.06 ▲3.61
Dashboard /wp-admin2,216 ▲455.50 ▼0.0780.54 ▼5.3338.99 ▼2.56
Posts /wp-admin/edit.php2,131 ▲282.10 ▲0.1136.90 ▼12.0029.58 ▼10.04
Add New Post /wp-admin/post-new.php6,248 ▲4,71926.13 ▲3.09939.85 ▲357.2955.00 ▼1.38
Media Library /wp-admin/upload.php1,430 ▲274.20 ▼0.0395.99 ▲0.7444.61 ▼0.80
Twitter /wp-admin/admin.php?page=cyklodev_notify_twitter9102.1822.4126.40
Cyklodev Notify /wp-admin/admin.php?page=cyklodev_notify7992.2928.8934.15

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cyklodev-wp-notify/views/twitter.php
    • > /wp-content/plugins/cyklodev-wp-notify/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cyklodev-wp-notify/views/notify.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: post, metabox, notify, email, twitter

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

The entry point to "Cyklodev WP Notify" version 1.3.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cyklodev-wp-notify.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
Everything looks great! No dangerous files found in this plugin462 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49841376
PO File223086

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
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%