93% beautify-excerpt

Code Review | Excerpt Beautifier

WordPress plugin Excerpt Beautifier scored 93% from 54 tests.

About plugin

  • Plugin page: beautify-excerpt
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 5.8.1
  • First release: Aug 19, 2020
  • Latest release: Aug 20, 2020
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: pieter91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 156 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Excerpt Beautifier
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0231.29 ▼3.38
Dashboard /wp-admin3.07 ▲0.0244.64 ▼2.54
Posts /wp-admin/edit.php3.13 ▲0.0148.63 ▼4.24
Add New Post /wp-admin/post-new.php5.43 ▼0.0091.08 ▼550.86
Media Library /wp-admin/upload.php3.01 ▲0.0130.41 ▲0.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Excerpt Beautifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.80 ▼0.1010.22 ▼1.1948.65 ▲3.09
Dashboard /wp-admin2,967 ▲335.98 ▲0.05166.90 ▲19.80111.18 ▲1.35
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0063.26 ▼5.6784.99 ▼0.95
Add New Post /wp-admin/post-new.php1,676 ▼2,03218.82 ▲0.06409.49 ▼68.19104.64 ▼1.90
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.02159.89 ▲8.38116.15 ▲3.59

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
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beautify-excerpt/BeautifyExcerpt.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Markup of the excerpts)
  • Screenshots: Please a description for screenshot #0 in beautify-excerpt/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === beautify-excerpt === )
You can look at the official readme.txt

beautify-excerpt/BeautifyExcerpt.php 85% from 13 tests

"Excerpt Beautifier" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("beautify-excerpt.php" instead of "BeautifyExcerpt.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191745

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin