79% excerpt-by-characters

Code Review | Excerpt by Characters

WordPress plugin Excerpt by Characters scored79%from 54 tests.

About plugin

  • Plugin page: excerpt-by-charac...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2013
  • Latest release: Oct 7, 2016
  • Number of updates: 17
  • Update frequency: every 70.5 days
  • Top authors: narin1975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.02ms] Passed 4 tests

Analyzing server-side resources used by Excerpt by Characters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.05 ▼2.86
Dashboard /wp-admin3.32 ▼0.0343.81 ▼16.46
Posts /wp-admin/edit.php3.37 ▲0.0143.00 ▼4.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.61 ▼16.15
Media Library /wp-admin/upload.php3.24 ▲0.0141.01 ▲7.34
Excerpt by Characters /wp-admin/options-general.php?page=excerpt-by-characters3.1932.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Excerpt by Characters
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.081.68 ▲0.1241.73 ▲3.07
Dashboard /wp-admin2,199 ▲225.64 ▼0.0183.59 ▼9.5936.32 ▼3.16
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0235.84 ▼8.9633.67 ▼18.43
Add New Post /wp-admin/post-new.php1,531 ▲322.99 ▼0.31661.31 ▲0.4754.43 ▼5.60
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0492.83 ▼4.6446.31 ▲3.04
Excerpt by Characters /wp-admin/options-general.php?page=excerpt-by-characters7842.1623.8025.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=excerpt-by-characters
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=excerpt-by-characters
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/excerpt-by-characters/excerpt-by-characters.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
4 plugin tags: tag, characters, more, excerpt

excerpt-by-characters/excerpt-by-characters.php Passed 13 tests

The entry point to "Excerpt by Characters" version 3.0 is a PHP file that has certain tags in its header comment area
68 characters long description:
Set the maximum length of excerpts by number of characters or words.

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
Success! There were no dangerous files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201049

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions3
▷ Named functions3100.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
No PNG files were detected