84% mpress-custom-feed-excerpts

Code Review | mPress Custom Feed Excerpts

WordPress plugin mPress Custom Feed Excerpts scored84%from 54 tests.

About plugin

  • Plugin page: mpress-custom-fee...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2012
  • Latest release: Jul 30, 2017
  • Number of updates: 6
  • Update frequency: every 288.8 days
  • Top authors: woodent (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by mPress Custom Feed Excerpts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.79 ▼2.28
Dashboard /wp-admin3.31 ▼0.0343.47 ▼19.71
Posts /wp-admin/edit.php3.36 ▲0.0149.22 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.75 ▼9.08
Media Library /wp-admin/upload.php3.23 ▲0.0133.86 ▲1.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for mPress Custom Feed Excerpts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.751.69 ▼0.1544.25 ▲0.68
Dashboard /wp-admin2,206 ▲215.91 ▲0.01100.86 ▼16.6642.69 ▼2.96
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0336.12 ▼0.7731.67 ▼2.97
Add New Post /wp-admin/post-new.php1,514 ▼517.72 ▼5.21686.12 ▲50.7054.38 ▼0.50
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0898.12 ▼4.8744.01 ▲2.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mpress-custom-feed-excerpts/mpress-custom-feed-excerpts.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: atom, wordpress feed excerpt, custom feed, feed, excerpts...

mpress-custom-feed-excerpts/mpress-custom-feed-excerpts.php Passed 13 tests

The main file in "mPress Custom Feed Excerpts" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
104 characters long description:
Customize your feed excerpts using the <!--more--> tag in posts. Full text feeds must be enabled.

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
Everything looks great! No dangerous files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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