84% automizy-lead-generation

Code Review | Automizy Lead Generation

WordPress plugin Automizy Lead Generation scored84%from 54 tests.

About plugin

  • Plugin page: automizy-lead-gen...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Nov 3, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: gkoncz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼11.97ms] Passed 4 tests

An overview of server-side resources used by Automizy Lead Generation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1943.97 ▲2.75
Dashboard /wp-admin3.51 ▲0.1649.85 ▼10.32
Posts /wp-admin/edit.php3.62 ▲0.2646.09 ▼5.29
Add New Post /wp-admin/post-new.php6.09 ▲0.1983.30 ▼33.04
Media Library /wp-admin/upload.php3.43 ▲0.2034.26 ▲0.76

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 540 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
automizy_client_secret
can_compress_scripts
widget_recent-posts
automizy_client_id
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
automizy_id

Browser metrics Passed 4 tests

An overview of browser requirements for Automizy Lead Generation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.21 ▼1.374.80 ▲2.8043.26 ▼0.21
Dashboard /wp-admin2,225 ▲405.90 ▲0.0194.18 ▼7.6841.73 ▼2.49
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0336.47 ▼3.9932.85 ▼3.90
Add New Post /wp-admin/post-new.php1,536 ▲1723.35 ▲0.19688.81 ▲29.5855.75 ▼2.80
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.0595.32 ▼2.2642.00 ▼1.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • automizy_id
    • can_compress_scripts
    • automizy_client_secret
    • automizy_client_id
    • widget_recent-comments
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 372× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Log/PsrLogAdapterTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Service\\AbstractConfigLoader' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/src/Guzzle/Service/Description/ServiceDescriptionLoader.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCacheStorageTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Service\\Command\\AbstractCommand' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/src/Guzzle/Service/Command/OperationCommand.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Service\\Resource\\ResourceIterator' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\AbstractRequestVisitor' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Plugin\\Backoff\\AbstractBackoffStrategy' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/src/Guzzle/Plugin/Backoff/ConstantBackoffStrategy.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\Parser\\Message\\MessageParserProvider' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Parser/Message/PeclHttpMessageParserTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Plugin\\Backoff\\AbstractErrorCodeBackoffStrategy' not found in wp-content/plugins/automizy-lead-generation/vendor/guzzlehttp/guzzle/src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: lead generation, email marketing, marketing automation

automizy-lead-generation/bootstrap.php 92% from 13 tests

The main PHP script in "Automizy Lead Generation" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("automizy-lead-generation.php" instead of "bootstrap.php")

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
There were no executable files found in this plugin39,127 lines of code in 522 files:
LanguageFilesBlank linesComment linesLines of code
PHP4386,40410,86133,982
reStructuredText301,2361,7941,824
Markdown627101,315
JSON341301,210
XML42911212
CSS2192142
make1245124
JavaScript21338123
HTML216092
Python1222350
Ant110134
YAML13019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.70
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces98
Interfaces53
Traits0
Classes388
▷ Abstract classes194.90%
▷ Concrete classes36995.10%
▷ Final classes10.27%
Methods3,036
▷ Static methods1043.43%
▷ Public methods2,79492.03%
▷ Protected methods2056.75%
▷ Private methods371.22%
Functions133
▷ Named functions21.50%
▷ Anonymous functions13198.50%
Constants84
▷ Global constants00.00%
▷ Class constants84100.00%
▷ Public constants84100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/guzzlehttp/guzzle/docs/_static/logo.png242.92KB69.68KB▼ 71.32%
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png0.78KB0.94KB0.00%