90% mandatory-excerpt

Code Review | Mandatory Excerpts for WordPress

WordPress plugin Mandatory Excerpts for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: mandatory-excerpt
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Dec 10, 2020
  • Number of updates: 5
  • Update frequency: every 66.0 days
  • Top authors: theMikeD (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,234 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.38ms] Passed 4 tests

An overview of server-side resources used by Mandatory Excerpts for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.18 ▼1.91
Dashboard /wp-admin3.34 ▲0.0444.54 ▼3.41
Posts /wp-admin/edit.php3.39 ▲0.0344.39 ▼2.17
Add New Post /wp-admin/post-new.php5.87 ▼0.0286.78 ▼10.04
Media Library /wp-admin/upload.php3.26 ▲0.0332.54 ▼1.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Mandatory Excerpts for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▼0.101.84 ▲0.0942.37 ▼1.05
Dashboard /wp-admin2,203 ▲125.84 ▲0.95103.34 ▲1.9639.99 ▼1.55
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0135.99 ▼0.9234.75 ▼0.18
Add New Post /wp-admin/post-new.php1,540 ▲2118.23 ▼5.10640.74 ▼18.7033.02 ▼19.39
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0798.12 ▼0.7440.82 ▼4.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: excerpt

mandatory-excerpt/mandatory-excerpt.php 92% from 13 tests

The principal PHP file in "Mandatory Excerpts for WordPress" v. 1.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 268 characters long)

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
No dangerous file extensions were detected232 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File181243

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods758.33%
▷ Protected methods00.00%
▷ Private methods541.67%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin