90% excerpt-extension

Code Review | Excerpt Extension

WordPress plugin Excerpt Extension scored90%from 54 tests.

About plugin

  • Plugin page: excerpt-extension
  • Plugin version: 4.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2017
  • Latest release: Jun 5, 2022
  • Number of updates: 52
  • Update frequency: every 37.5 days
  • Top authors: Kometschuh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,277 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
Installer ran successfully

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

An overview of server-side resources used by Excerpt Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.39 ▲1.95
Dashboard /wp-admin3.40 ▲0.0944.90 ▼4.46
Posts /wp-admin/edit.php3.45 ▲0.0946.76 ▼1.13
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.30 ▼12.37
Media Library /wp-admin/upload.php3.32 ▲0.0935.73 ▲3.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Excerpt Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.121.68 ▼0.2137.78 ▼8.42
Dashboard /wp-admin2,206 ▲155.85 ▲0.79111.49 ▼6.9242.68 ▼2.00
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0439.32 ▲3.1340.44 ▲4.19
Add New Post /wp-admin/post-new.php1,542 ▲2818.40 ▲0.83625.32 ▼47.3152.69 ▼8.61
Media Library /wp-admin/upload.php1,391 ▲94.20 ▼0.0396.96 ▼5.1841.68 ▼0.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: formatting, post, content, excerpt, post-excerpt

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

"Excerpt Extension" version 4.9.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
130 characters long description:
Adds more excerpt options to the details pannel in the widgets admin from the premium widget Term and Category Based Posts Widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin347 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161105347

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.39
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
Namespaces1
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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