84% apetail

Code Review | ApeTail Communication System

WordPress plugin ApeTail Communication System scored84%from 54 tests.

About plugin

  • Plugin page: apetail
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Sep 15, 2021
  • Latest release: Aug 15, 2023
  • Number of updates: 11
  • Update frequency: every 63.6 days
  • Top authors: ayauho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by ApeTail Communication System
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0327.59 ▼16.28
Dashboard /wp-admin3.36 ▲0.0648.67 ▼2.51
Posts /wp-admin/edit.php3.47 ▲0.1246.75 ▼5.64
Add New Post /wp-admin/post-new.php4.65 ▼1.2343.84 ▼53.11
Media Library /wp-admin/upload.php3.28 ▲0.0639.85 ▲7.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ApeTail Communication System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9413.20 ▼1.1711.47 ▲9.0839.34 ▼9.45
Dashboard /wp-admin2,224 ▲394.85 ▼0.03110.98 ▲4.6543.17 ▼3.66
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0540.15 ▲3.3336.05 ▲2.15
Add New Post /wp-admin/post-new.php1,557 ▲2318.49 ▼4.68656.31 ▲38.8553.97 ▲2.30
Media Library /wp-admin/upload.php1,409 ▲244.23 ▲0.0398.80 ▼1.9444.68 ▲1.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 current_user_can() in wp-content/plugins/apetail/admin/admin-page.php:2

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 94% 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: These screenshots require images: #6 (Stream), #7 (Chats), #8 (AI Agents), #9 (ChatGPT), #10 (Commands)
The official readme.txt is a good inspiration

apetail/apetail.php 92% from 13 tests

The entry point to "ApeTail Communication System" version 2.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 231 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin246 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22015245
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin