100% easier-excerpts

Code Review | Easier Excerpts

WordPress plugin Easier Excerpts scored 100% from 54 tests.

About plugin

  • Plugin page: easier-excerpts
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-5.0.2
  • WordPress version: 5.8.1
  • First release: Mar 7, 2016
  • Latest release: Dec 21, 2018
  • Number of updates: 35
  • Update frequency: every 29.4 days
  • Top authors: pressware (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 5,480 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Easier Excerpts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.08 ▲12.59
Dashboard /wp-admin3.06 ▲0.0149.51 ▼0.86
Posts /wp-admin/edit.php3.11 ▲0.0053.74 ▲3.67
Add New Post /wp-admin/post-new.php5.42 ▼0.01100.83 ▼691.79
Media Library /wp-admin/upload.php3.00 ▲0.0039.69 ▲2.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easier Excerpts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13215.98 ▲0.4411.60 ▼0.0552.42 ▼1.22
Dashboard /wp-admin2,970 ▲336.05 ▼0.07152.10 ▼16.69124.06 ▼7.46
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0173.57 ▼2.68103.64 ▲1.23
Add New Post /wp-admin/post-new.php1,617 ▼6621.60 ▲2.82301.85 ▼99.81114.73 ▼11.33
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.02174.46 ▲13.80129.57 ▼6.69

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
This plugin's uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
2 plugin tags: blog, excerpts

easier-excerpts/easier-excerpts.php Passed 13 tests

The main file in "Easier Excerpts" v. 1.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Automatically expand the excerpt field as content is entered.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected326 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
Markdown2920158
JavaScript2196685
PHP2137550
JSON10033

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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
There are no PNG files in this plugin