84% chat-for-aesop-story-engine

Code Review | Chat for Aesop Story Engine

WordPress plugin Chat for Aesop Story Engine scored 84% from 54 tests.

About plugin

  • Plugin page: chat-for-aesop-st...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jun 19, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: peiche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼5.22ms] Passed 4 tests

An overview of server-side resources used by Chat for Aesop Story Engine
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2937.85 ▼3.24
Dashboard /wp-admin3.59 ▲0.2951.31 ▲2.84
Posts /wp-admin/edit.php3.70 ▲0.3551.48 ▲4.73
Add New Post /wp-admin/post-new.php6.17 ▲0.2986.58 ▼16.06
Media Library /wp-admin/upload.php3.51 ▲0.2936.30 ▼4.40
Install Plugins /wp-admin/themes.php?page=ase-chat-install-plugins3.5134.36

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Chat for Aesop Story Engine
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.47 ▲0.221.66 ▼0.2641.79 ▼9.58
Dashboard /wp-admin2,241 ▲535.85 ▲0.94110.01 ▼0.8141.32 ▼3.09
Posts /wp-admin/edit.php2,132 ▲432.04 ▲0.0543.57 ▲1.6837.55 ▲3.00
Add New Post /wp-admin/post-new.php1,561 ▲2723.38 ▲0.16651.40 ▲50.9758.57 ▼5.27
Media Library /wp-admin/upload.php1,425 ▲344.26 ▼0.0299.46 ▼4.2545.90 ▲2.70
Install Plugins /wp-admin/themes.php?page=ase-chat-install-plugins9212.0927.2025.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 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 fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-for-aesop-story-engine/class.backend.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chat-for-aesop-story-engine/ase-chat.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chat-for-aesop-story-engine/class.settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/chat-for-aesop-story-engine/inc/class-tgm-plugin-activation.php:161
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chat-for-aesop-story-engine/class.shortcode.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-for-aesop-story-engine/class.front-end.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: chat, aesop, story

chat-for-aesop-story-engine/ase-chat.php 85% from 13 tests

The main file in "Chat for Aesop Story Engine" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("chat-for-aesop-story-engine.php" instead of "ase-chat.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,477 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64138981,336
CSS1100141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.56
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods11.75%
▷ Public methods5189.47%
▷ Protected methods610.53%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png26.29KB26.32KB0.00%
assets/screenshot-2.png26.26KB26.29KB0.00%