84% automater-pl

Code Review | Automater

WordPress plugin Automater scored84%from 54 tests.

About plugin

  • Plugin page: automater-pl
  • Plugin version: 0.2.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: May 29, 2020
  • Latest release: May 29, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: automater (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,141 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.72ms] Passed 4 tests

This is a short check of server-side resources used by Automater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.88 ▲1.59
Dashboard /wp-admin3.39 ▲0.0949.32 ▼5.85
Posts /wp-admin/edit.php3.44 ▲0.0853.22 ▲2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.10 ▼6.46
Media Library /wp-admin/upload.php3.25 ▲0.0235.53 ▼4.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 296 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Automater: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.26 ▼1.121.73 ▼0.7742.74 ▼1.85
Dashboard /wp-admin2,209 ▲215.83 ▼0.02107.44 ▼2.6641.57 ▼3.98
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0440.30 ▲3.2438.66 ▲3.65
Add New Post /wp-admin/post-new.php1,548 ▲3418.32 ▲0.90656.33 ▼40.4251.38 ▼9.75
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.14101.31 ▼14.8941.02 ▼10.70

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 129× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AutomaterSDK\\Response\\BaseResponse' not found in wp-content/plugins/automater-pl/vendor/automater-pl/rest-php-sdk/src/Response/CreateDatabaseResponse.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AutomaterSDK\\Request\\BaseRequest' not found in wp-content/plugins/automater-pl/vendor/automater-pl/rest-php-sdk/src/Request/AddCodesRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/automater-pl/vendor/container-interop/container-interop/src/Interop/Container/Exception/ContainerException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Doctrine\\Common\\Collections\\Expr\\Expression' not found in wp-content/plugins/automater-pl/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/CompositeExpression.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/automater-pl/vendor/php-di/php-di/src/DI/Definition/StringDefinition.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Doctrine\\Common\\Collections\\Collection' not found in wp-content/plugins/automater-pl/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'DI\\Definition\\FactoryDefinition' not found in wp-content/plugins/automater-pl/vendor/php-di/php-di/src/DI/Definition/DecoratorDefinition.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/automater-pl/vendor/php-di/php-di/src/DI/Invoker/FactoryParameterResolver.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/automater-pl/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/automater-pl/vendor/psr/http-message/src/ResponseInterface.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocomerce, ebay, allegro, automation, automater

automater-pl/automater.php 85% from 13 tests

The principal PHP file in "Automater" v. 0.2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("automater-pl.php" instead of "automater.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected20,505 lines of code in 278 files:
LanguageFilesBlank linesComment linesLines of code
PHP2473,6258,88117,756
JSON19001,398
Markdown554301,019
YAML3100152
PO File13339105
XML214466
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.12
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces45
Interfaces37
Traits2
Classes185
▷ Abstract classes73.78%
▷ Concrete classes17896.22%
▷ Final classes168.99%
Methods1,363
▷ Static methods15711.52%
▷ Public methods1,15284.52%
▷ Protected methods282.05%
▷ Private methods18313.43%
Functions232
▷ Named functions11951.29%
▷ Anonymous functions11348.71%
Constants144
▷ Global constants4128.47%
▷ Class constants10371.53%
▷ Public constants103100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected