90% get-better-excerpt

Code Review | Get Better Excerpt

WordPress plugin Get Better Excerpt scored90%from 54 tests.

About plugin

  • Plugin page: get-better-excerpt
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2009
  • Latest release: Apr 7, 2016
  • Number of updates: 18
  • Update frequency: every 138.7 days
  • Top authors: christopherross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,514 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.00MB] [CPU: ▼14.84ms] Passed 4 tests

A check of server-side resources used by Get Better Excerpt
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.54 ▼7.08
Dashboard /wp-admin3.32 ▼0.0346.92 ▼18.27
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▲5.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.33 ▼32.87
Media Library /wp-admin/upload.php3.24 ▲0.0134.86 ▼1.14

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Get Better Excerpt
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.49 ▲0.081.91 ▲0.2643.15 ▲0.70
Dashboard /wp-admin2,206 ▲185.85 ▲0.06106.93 ▲4.2641.69 ▼2.93
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0641.48 ▲3.3435.47 ▲0.63
Add New Post /wp-admin/post-new.php1,536 ▲1723.26 ▲0.03657.19 ▼11.9858.79 ▼11.29
Media Library /wp-admin/upload.php1,388 ▼34.30 ▲0.1293.45 ▼1.7340.13 ▼1.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: plugin, words, excerpt, wordpress, post...

get-better-excerpt/get-better-excerpt.php Passed 13 tests

Analyzing the main PHP file in "Get Better Excerpt" version 2.0.0
56 characters long description:
Returns the excerpt using whole words instead of partial

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192441

PHP code Passed 2 tests

This is a very shot review of 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.62
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin