94% advanced-excerpt

Code Review | Advanced Excerpt

WordPress plugin Advanced Excerpt scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-excerpt
  • Plugin version: 4.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.8
  • WordPress version: 5.9.2
  • First release: Aug 28, 2007
  • Latest release: Aug 4, 2021
  • Number of updates: 109
  • Update frequency: every 46.7 days
  • Top authors: wpkube (44.95%)basvd (35.78%)FancyThemes (11.01%)aprea (8.26%)bradt (3.67%)

Code review

54 tests

User reviews

92 reviews

Install metrics

100,000+ active / 1,277,724 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼293.39ms] Passed 4 tests

Server-side resources used by Advanced Excerpt
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1758.07 ▲5.00
Dashboard /wp-admin3.53 ▲0.1235.20 ▲1.26
Posts /wp-admin/edit.php3.75 ▲0.1138.53 ▲2.94
Add New Post /wp-admin/post-new.php6.99 ▲0.0295.41 ▼1,180.86
Media Library /wp-admin/upload.php3.40 ▲0.1125.91 ▲3.12
Excerpt /wp-admin/options-general.php?page=advanced-excerpt3.4428.05

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Excerpt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲1815.75 ▲0.205.78 ▼0.852.53 ▲0.11
Dashboard /wp-admin2,897 ▲366.11 ▼0.03115.99 ▼18.22159.34 ▲0.87
Posts /wp-admin/edit.php2,693 ▲53.37 ▲0.0164.04 ▼0.17140.36 ▼4.99
Add New Post /wp-admin/post-new.php1,720 ▲5921.90 ▲5.90444.92 ▲23.52157.12 ▲7.72
Media Library /wp-admin/upload.php1,697 ▼45.53 ▼0.01138.54 ▼2.42185.04 ▼0.13
Excerpt /wp-admin/options-general.php?page=advanced-excerpt3,1332.6560.11212.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-excerpt/template/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-excerpt/functions/functions.php:96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-excerpt/advanced-excerpt.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-excerpt/template/sidebar.php:7

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


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
5 plugin tags: post excerpt, excerpt, content, formatting, post

advanced-excerpt/advanced-excerpt.php Passed 13 tests

"Advanced Excerpt" version 4.3.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Control the appearance of WordPress post excerpts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected909 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity6.73
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin