84% change-excerpt-length

Code Review | Change Excerpt Length

WordPress plugin Change Excerpt Length scored84%from 54 tests.

About plugin

  • Plugin page: change-excerpt-le...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.7.4
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Apr 30, 2017
  • Number of updates: 8
  • Update frequency: every 82.6 days
  • Top authors: shinorex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /6,126 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: ▼4.72ms] Passed 4 tests

A check of server-side resources used by Change Excerpt Length
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.74 ▼2.00
Dashboard /wp-admin3.31 ▲0.0151.79 ▼5.86
Posts /wp-admin/edit.php3.36 ▲0.0147.05 ▼3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.37 ▼7.33
Media Library /wp-admin/upload.php3.24 ▲0.0137.25 ▲3.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Change Excerpt Length: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.031.79 ▼0.0343.25 ▼1.89
Dashboard /wp-admin2,195 ▲185.65 ▲0.0295.56 ▼36.3142.13 ▼20.98
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0135.47 ▼0.6832.66 ▼2.39
Add New Post /wp-admin/post-new.php1,545 ▲1923.33 ▲5.63673.73 ▲7.5249.45 ▼1.48
Media Library /wp-admin/upload.php1,394 ▼94.23 ▼0.10102.23 ▲2.6448.64 ▲4.93

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-excerpt-length/change-excerpt-length.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: excerpt limit, excerpt length, settings, formatting, wordpress excerpt...

change-excerpt-length/change-excerpt-length.php 92% from 13 tests

The primary PHP file in "Change Excerpt Length" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 287 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected30 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212830

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
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

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