89% automatic-wp-posts-summarizer

Code Review | Automatic WP Posts Summarizer

WordPress plugin Automatic WP Posts Summarizer scored89%from 54 tests.

About plugin

  • Plugin page: automatic-wp-post...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 21, 2022
  • Latest release: Aug 22, 2022
  • Number of updates: 9
  • Update frequency: every 5.3 days
  • Top authors: Turn2honey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Automatic WP Posts Summarizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.88 ▲1.28
Dashboard /wp-admin3.45 ▲0.1549.54 ▲1.75
Posts /wp-admin/edit.php3.56 ▲0.2146.63 ▲1.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1586.87 ▼8.35
Media Library /wp-admin/upload.php3.37 ▲0.1537.36 ▲3.07
Automatic WP Posts Summarizer /wp-admin/edit.php?page=awps-settings3.3431.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables
wp_awps_summarizer
New WordPress options
can_compress_scripts
awps_options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
awps_settings_key

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic WP Posts Summarizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.171.62 ▼0.0242.00 ▼2.61
Dashboard /wp-admin2,199 ▲225.62 ▼0.0486.16 ▼2.4740.39 ▲3.25
Posts /wp-admin/edit.php2,107 ▲282.01 ▼0.1038.51 ▼0.8335.61 ▲2.63
Add New Post /wp-admin/post-new.php1,538 ▲118.18 ▼4.43594.21 ▼3.9670.41 ▼18.49
Media Library /wp-admin/upload.php1,407 ▲44.25 ▲0.1295.55 ▼13.2342.94 ▼1.27
Automatic WP Posts Summarizer /wp-admin/edit.php?page=awps-settings8982.0224.2928.78

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 were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • awps_settings_key
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

automatic-wp-posts-summarizer/automatic-wp-posts-summarizer.php 92% from 13 tests

This is the main PHP file of "Automatic WP Posts Summarizer" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "5.2 or higher")

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
Good job! No executable or dangerous file extensions detected976 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP18265439951
JSON10018
Markdown1607

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods62
▷ Static methods1219.35%
▷ Public methods5690.32%
▷ Protected methods00.00%
▷ Private methods69.68%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants13
▷ Global constants323.08%
▷ Class constants1076.92%
▷ Public constants770.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin