94% advanced-post-excerpt

Code Review | Advanced Post Excerpt

WordPress plugin Advanced Post Excerpt scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-post-exc...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.9.2
  • First release: Feb 26, 2016
  • Latest release: Jun 24, 2020
  • Number of updates: 9
  • Update frequency: every 175.6 days
  • Top authors: stevegrunwell (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 14,701 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: ▼274.93ms] Passed 4 tests

A check of server-side resources used by Advanced Post Excerpt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.4256.99 ▲39.81
Dashboard /wp-admin3.42 ▲0.0236.42 ▲2.27
Posts /wp-admin/edit.php3.66 ▲0.0287.29 ▲47.91
Add New Post /wp-admin/post-new.php6.94 ▼0.03119.18 ▼1,144.26
Media Library /wp-admin/upload.php3.31 ▲0.0231.00 ▲2.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Post Excerpt: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲2715.67 ▲0.096.32 ▲0.612.08 ▲0.05
Dashboard /wp-admin2,881 ▲276.09 ▼0.14118.21 ▼13.85157.63 ▼56.93
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0065.48 ▲5.72140.99 ▼4.12
Add New Post /wp-admin/post-new.php1,851 ▲16121.84 ▲0.59531.81 ▲92.08240.63 ▲81.48
Media Library /wp-admin/upload.php1,698 ▼05.54 ▼0.00148.58 ▼14.83245.38 ▲56.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AdvancedPostExcerpt\\add_action() in wp-content/plugins/advanced-post-excerpt/advanced-post-excerpt.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: tinymce, excerpts, wysiwyg

advanced-post-excerpt/advanced-post-excerpt.php Passed 13 tests

"Advanced Post Excerpt" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Replace the default Post Excerpt meta box with a superior editing experience.

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
Good job! No executable or dangerous file extensions detected98 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1134955
Markdown220041
JavaScript1172

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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
Namespaces1
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin