78% cyklodev-wp-auto-summerizer

Code Review | Cyklodev WP Auto Summarizer

WordPress plugin Cyklodev WP Auto Summarizer scored78%from 54 tests.

About plugin

  • Plugin page: cyklodev-wp-auto-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2019
  • Latest release: Jul 22, 2020
  • Number of updates: 3
  • Update frequency: every 132.3 days
  • Top authors: zephilou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,718 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 gracefully, with no errors

Server metrics [RAM: ▼0.14MB] [CPU: ▼10.62ms] Passed 4 tests

A check of server-side resources used by Cyklodev WP Auto Summarizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.36 ▼1.58
Dashboard /wp-admin3.11 ▼0.2028.58 ▼17.69
Posts /wp-admin/edit.php3.41 ▲0.0547.76 ▼2.03
Add New Post /wp-admin/post-new.php5.50 ▼0.3969.09 ▼19.09
Media Library /wp-admin/upload.php3.19 ▼0.0429.51 ▼3.65
Summary /wp-admin/admin.php?page=cyklodev_summary3.0926.86
Abstract /wp-admin/admin.php?page=cyklodev_abstract3.0926.18

Server storage [IO: ▲0.04MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Cyklodev WP Auto Summarizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.65 ▲0.301.63 ▼0.2339.83 ▼2.72
Dashboard /wp-admin2,232 ▲555.70 ▲0.1494.46 ▲7.8738.18 ▼6.39
Posts /wp-admin/edit.php2,137 ▲372.08 ▲0.1142.33 ▲3.0235.16 ▲0.46
Add New Post /wp-admin/post-new.php6,247 ▲4,72125.99 ▲2.46927.95 ▲227.1856.62 ▲5.60
Media Library /wp-admin/upload.php1,437 ▲374.27 ▲0.11111.09 ▲10.0850.59 ▲3.68
Summary /wp-admin/admin.php?page=cyklodev_summary9532.1230.4748.46
Abstract /wp-admin/admin.php?page=cyklodev_abstract9432.1329.4354.27

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

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

Smoke tests 50% 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)
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyklodev_abstract
    • > Notice in wp-content/plugins/cyklodev-wp-auto-summerizer/includes/abstract.php+15
    Trying to get property 'ID' of non-object
    • > GET request to /wp-admin/admin.php?page=cyklodev_summary
    • > Notice in wp-content/plugins/cyklodev-wp-auto-summerizer/views/params.php+13
    Undefined index: cyklodev_summary_nonce
    • > GET request to /wp-admin/admin.php?page=cyklodev_abstract
    • > Notice in wp-content/plugins/cyklodev-wp-auto-summerizer/views/abstract.php+15
    Undefined index: cyklodev_summary_abstract

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
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/views/params.php
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/views/abstract.php
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/includes/menu.php
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/includes/abstract.php
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/index.php
    • > /wp-content/plugins/cyklodev-wp-auto-summerizer/includes/summary.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: post, plugin, shortcode, summary

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

The principal PHP file in "Cyklodev WP Auto Summarizer" v. 1.2.0 is loaded by WordPress automatically on each request
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-auto-summerizer.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
There were no executable files found in this plugin520 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP68934410
JavaScript11825110

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
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
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%