84% advanced-post-excerpt

Code Review | Advanced Post Excerpt

WordPress plugin Advanced Post Excerpt scored84%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: 6.3.1
  • 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 /16,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.48ms] Passed 4 tests

A check of server-side resources used by Advanced Post Excerpt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.76 ▲0.89
Dashboard /wp-admin3.32 ▲0.0245.17 ▼1.22
Posts /wp-admin/edit.php3.37 ▲0.0243.78 ▼4.24
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.84 ▼5.34
Media Library /wp-admin/upload.php3.25 ▲0.0135.39 ▲2.16

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

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

Browser metrics Passed 4 tests

Advanced Post Excerpt: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.064.77 ▲3.0443.41 ▼4.99
Dashboard /wp-admin2,203 ▲155.83 ▼0.07104.95 ▼0.4038.65 ▼1.73
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0135.31 ▼5.6132.78 ▼3.19
Add New Post /wp-admin/post-new.php6,526 ▲4,99325.11 ▲2.00914.50 ▲254.0476.71 ▲25.73
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0394.97 ▲0.8540.09 ▼2.60

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 items
  • 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 just a short smoke test looking for browser issues
No browser issues were found

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
3 plugin tags: tinymce, wysiwyg, excerpts

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

The principal PHP file in "Advanced Post Excerpt" v. 1.0.0 is loaded by WordPress automatically on each request
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin98 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1134955
Markdown220041
JavaScript1172

PHP code Passed 2 tests

A brief analysis 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin