90% wp-excerpt-settings

Code Review | WP Excerpt Settings

WordPress plugin WP Excerpt Settings scored 90% from 54 tests.

About plugin

  • Plugin page: wp-excerpt-settings
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Dec 21, 2017
  • Number of updates: 22
  • Update frequency: every 57.8 days
  • Top authors: Yslo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 7,435 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
This plugin's installer ran successfully

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

Server-side resources used by WP Excerpt Settings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.90 ▼3.19
Dashboard /wp-admin3.34 ▲0.0449.64 ▲0.32
Posts /wp-admin/edit.php3.39 ▲0.0449.27 ▲0.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.03 ▲0.91
Media Library /wp-admin/upload.php3.27 ▲0.0438.69 ▲3.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
wp_excerpt_options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Excerpt Settings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.37 ▼1.311.67 ▼0.2940.00 ▼12.54
Dashboard /wp-admin2,206 ▲145.84 ▲0.8994.80 ▼22.3137.91 ▼7.34
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0036.40 ▼0.5835.85 ▲3.07
Add New Post /wp-admin/post-new.php1,533 ▲1323.13 ▲0.13696.77 ▲19.2158.12 ▲4.35
Media Library /wp-admin/upload.php1,382 ▼34.36 ▲0.14106.19 ▼2.1844.97 ▲0.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #3 (Excerpt settings panel) image missing
You can look at the official readme.txt

wp-excerpt-settings/wp-excerpt-settings.php Passed 13 tests

This is the main PHP file of "WP Excerpt Settings" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Configure WordPress Excerpt through UI (User Interface).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3392697
PO File1111449

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.29
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin