79% coyote

Code Review | Coyote

WordPress plugin Coyote scored79%from 54 tests.

About plugin

  • Plugin page: coyote
  • Plugin version: 2.6
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: Aug 4, 2023
  • Number of updates: 40
  • Update frequency: every 23.3 days
  • Top authors: coyoteteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by Coyote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.52 ▼2.99
Dashboard /wp-admin3.31 ▲0.0044.55 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0046.00 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.63 ▼11.98
Media Library /wp-admin/upload.php3.23 ▲0.0033.29 ▼1.20

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coyote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.35 ▼1.201.87 ▼0.0240.66 ▼1.61
Dashboard /wp-admin2,203 ▲155.79 ▼0.09102.84 ▼1.8339.95 ▼2.81
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0134.50 ▼1.3933.91 ▼1.32
Add New Post /wp-admin/post-new.php1,514 ▼017.67 ▲0.18646.28 ▼62.1551.13 ▼0.38
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.08109.31 ▲0.0748.15 ▲0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/coyote/vendor/nikic/php-parser/grammar/rebuildParsers.php
  • 748× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/coyote/vendor/twig/twig/src/Node/Expression/Binary/AndBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/coyote/vendor/twig/twig/src/Node/FlushNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/coyote/vendor/twig/twig/src/Node/Expression/Test/EvenTest.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpParser\\Builder' not found in wp-content/plugins/coyote/vendor/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/coyote/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/coyote/vendor/json-mapper/json-mapper/tests/Integration/FeatureSupportsMappingToInterfaceAndAbstractClassTest.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PAC_Vendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/coyote/vendor/coyote/coyote-api-client/vendor_prefixed/monolog/src/Monolog/Handler/OverflowHandler.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'PAC_Vendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/coyote/vendor/coyote/coyote-api-client/vendor_prefixed/monolog/src/Monolog/Handler/MandrillHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'PAC_Vendor\\Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/coyote/vendor/coyote/coyote-api-client/vendor_prefixed/monolog/src/Monolog/Handler/HandlerWrapper.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/coyote/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected

coyote/coyote.php Passed 13 tests

The principal PHP file in "Coyote" v. 2.6 is loaded by WordPress automatically on each request
62 characters long description:
Integrate with a Coyote API to obtain media text descriptions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected88,321 lines of code in 1,205 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,09311,29725,23170,346
JSON44109,998
Markdown361,65204,721
yacc3336122,050
PO File1158180452
JavaScript3614271
Twig9181195
YAML7172157
XML510588
CSS15023
SQL22010
reStructuredText18510

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.04
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces163
Interfaces84
Traits25
Classes960
▷ Abstract classes444.58%
▷ Concrete classes91695.42%
▷ Final classes12013.10%
Methods5,032
▷ Static methods4899.72%
▷ Public methods4,00779.63%
▷ Protected methods55110.95%
▷ Private methods4749.42%
Functions1,749
▷ Named functions20211.55%
▷ Anonymous functions1,54788.45%
Constants513
▷ Global constants142.73%
▷ Class constants49997.27%
▷ Public constants40180.36%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected