72% easy-custom-auto-excerpt

Code Review | Easy Custom Auto Excerpt

WordPress plugin Easy Custom Auto Excerpt scored 72% from 54 tests.

About plugin

  • Plugin page: easy-custom-auto-...
  • Plugin version: 2.4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Feb 12, 2020
  • Number of updates: 123
  • Update frequency: every 20.5 days
  • Top authors: Todi.Adiatmo (100%)

Code review

54 tests

User reviews

147 reviews

Install metrics

10,000+ active / 299,769 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▲2.59ms] 75% from 4 tests

Server-side resources used by Easy Custom Auto Excerpt
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 928.04ms on /wp-admin/admin.php?page=ecae_about_page)
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3646.07 ▲3.35
Dashboard /wp-admin3.66 ▲0.3652.42 ▲4.35
Posts /wp-admin/edit.php3.78 ▲0.4248.15 ▲1.95
Add New Post /wp-admin/post-new.php6.24 ▲0.36101.33 ▲0.71
Media Library /wp-admin/upload.php3.58 ▲0.3539.70 ▲7.21
About ECAE /wp-admin/admin.php?page=ecae_about_page3.63928.04
Settings /wp-admin/admin.php?page=tonjoo_excerpt3.7252.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 130 new files
Database: no new tables, 7 new options
New WordPress options
ecae_start_date
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Custom Auto Excerpt: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.17 ▼1.101.81 ▲0.1744.53 ▲2.94
Dashboard /wp-admin2,240 ▲694.88 ▼0.02115.66 ▲12.3642.54 ▲0.17
Posts /wp-admin/edit.php2,120 ▲312.03 ▲0.0237.65 ▲2.5633.15 ▼1.47
Add New Post /wp-admin/post-new.php1,555 ▲4123.30 ▲5.65610.91 ▼64.4164.16 ▲8.70
Media Library /wp-admin/upload.php1,419 ▲344.17 ▼0.0197.12 ▼1.4240.57 ▼7.71
About ECAE /wp-admin/admin.php?page=ecae_about_page1,5479.78296.2366.28
Settings /wp-admin/admin.php?page=tonjoo_excerpt3,9224.0798.91116.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • ecae_start_date
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-custom-auto-excerpt/upsell-page.php
  • 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-auto-excerpt/the-post.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 39
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-custom-auto-excerpt/options-page.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 15
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-custom-auto-excerpt/easy-custom-auto-excerpt.php:12
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 39
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 26
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-custom-auto-excerpt/options-page-location.php on line 34

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=ecae_about_page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: ace.edit can't find div #ace-editor
    • > GET request to /wp-admin/admin.php?page=tonjoo_excerpt
    • > Network (severe)
    wp-content/plugins/easy-custom-auto-excerpt/assets/ace-min-noconflict-css-monokai/theme-monokai.js - Failed to load resource: the server responded with a status of 404 (Not 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
10 plugin tags: auto, automatic, read more button, content, read more...

easy-custom-auto-excerpt/easy-custom-auto-excerpt.php Passed 13 tests

This is the main PHP file of "Easy Custom Auto Excerpt" version 2.4.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Auto Excerpt for your post on home, front_page, search and archive.

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
Success! There were no dangerous files found in this plugin9,293 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP186374153,546
JavaScript136054302,923
CSS8179731,443
PO File55967571,381

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.17
▷ Minimum class complexity3.00
▷ Maximum class complexity52.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 0.32MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/premium-promo/ecae-buttonskin-arise-red.png3.44KB1.97KB▼ 42.52%
assets/ecae_logo.png2.22KB1.20KB▼ 45.94%
assets/premium-promo/ecae-buttonskin-soft-blue.png2.69KB1.72KB▼ 36.22%
assets/premium-promo/ecae-buttonskin-flatland-red.png2.10KB0.85KB▼ 59.46%
assets/about/banner_feature_3.png12.10KB5.12KB▼ 57.65%