84% multiple-excerpt-lengths

Code Review | Multiple Excerpt Lengths

WordPress plugin Multiple Excerpt Lengths scored84%from 54 tests.

About plugin

  • Plugin page: multiple-excerpt-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Sep 8, 2019
  • Number of updates: 8
  • Update frequency: every 165.0 days
  • Top authors: raajtram (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.19ms] Passed 4 tests

This is a short check of server-side resources used by Multiple Excerpt Lengths
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.53 ▲1.40
Dashboard /wp-admin3.34 ▼0.0043.85 ▼15.83
Posts /wp-admin/edit.php3.39 ▲0.0444.92 ▼4.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.49 ▼5.93
Media Library /wp-admin/upload.php3.26 ▲0.0433.84 ▲3.33
Excerpt Lengths /wp-admin/options-general.php?page=multiple-excerpt-lengths3.2329.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Excerpt Lengths
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.641.80 ▲0.0644.97 ▲5.87
Dashboard /wp-admin2,210 ▲284.86 ▼0.03101.25 ▼4.1939.58 ▼1.42
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0535.65 ▼6.3234.39 ▼3.96
Add New Post /wp-admin/post-new.php1,545 ▲3118.31 ▲0.86601.61 ▼18.2350.61 ▼3.25
Media Library /wp-admin/upload.php1,395 ▲44.40 ▲0.0999.94 ▼4.3341.33 ▼5.81
Excerpt Lengths /wp-admin/options-general.php?page=multiple-excerpt-lengths8912.1721.7626.22

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multiple-excerpt-lengths/multiple-excerpt-lengths.php

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)
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: wp_query, excerpts, wp_loop, excerpt

multiple-excerpt-lengths/multiple-excerpt-lengths.php Passed 13 tests

The entry point to "Multiple Excerpt Lengths" version 1.2 is a PHP file that has certain tags in its header comment area
134 characters long description:
Allows you to change the lengths of WordPress excerpts (the_excerpt) that are present at various pages/templates throughout your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected172 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1409172

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin