83% simply-excerpts

Code Review | Simply Excerpts

WordPress plugin Simply Excerpts scored83%from 54 tests.

About plugin

  • Plugin page: simply-excerpts
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 14, 2015
  • Latest release: Aug 16, 2023
  • Number of updates: 9
  • Update frequency: every 314.7 days
  • Top authors: nomadcoder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /6,567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Simply Excerpts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.39 ▼0.59
Dashboard /wp-admin3.33 ▼0.0247.19 ▼13.16
Posts /wp-admin/edit.php3.38 ▲0.0251.77 ▼1.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.58 ▼13.88
Media Library /wp-admin/upload.php3.25 ▲0.0235.20 ▼2.17
Simply Excerpts Settings /wp-admin/options-general.php?page=sfly_excerpt_settings3.2233.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simply Excerpts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.351.61 ▼0.1639.55 ▼3.32
Dashboard /wp-admin2,199 ▲225.51 ▼0.1581.64 ▼4.9538.28 ▼3.58
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0239.95 ▼1.1435.29 ▼3.16
Add New Post /wp-admin/post-new.php1,540 ▲1418.03 ▼5.39609.41 ▼60.5767.59 ▲18.72
Media Library /wp-admin/upload.php1,401 ▼24.17 ▼0.0796.54 ▼12.1542.85 ▼4.29
Simply Excerpts Settings /wp-admin/options-general.php?page=sfly_excerpt_settings8692.0023.3828.36

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
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simply-excerpts/simply-excerpts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
  • Screenshots: Screenshot #1 (Settings) image required
  • Donate link: Please fix this invalid URI: "Donate link: https://www.paypal.com/paypalme/nomadnewyork"
  • Plugin Name: You should set the name of your plugin on the first line ( === simply-excerpts === )
Please take inspiration from this readme.txt

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

The main PHP file in "Simply Excerpts" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Simply modify the number of words and replace the elipsis (...) with text for excerpts

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
No dangerous file extensions were detected108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23483108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.94KB6.04KB▼ 53.32%