79% organic

Code Review | Organic

WordPress plugin Organic scored79%from 54 tests.

About plugin

  • Plugin page: organic
  • Plugin version: 1.15.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: Oct 30, 2023
  • Number of updates: 10
  • Update frequency: every 24.8 days
  • Top authors: sergeyanuchin (90%)tonyorganic (20%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.69MB] [CPU: ▲15.05ms] Passed 4 tests

This is a short check of server-side resources used by Organic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.12 ▲1.6660.35 ▲20.15
Dashboard /wp-admin5.03 ▲1.6862.48 ▼0.42
Posts /wp-admin/edit.php5.14 ▲1.7870.38 ▲24.19
Add New Post /wp-admin/post-new.php7.61 ▲1.72104.51 ▲17.15
Media Library /wp-admin/upload.php4.95 ▲1.7258.45 ▲23.33
Organic Settings /wp-admin/options-general.php?page=organic/Organic/AdminSettings.php4.9856.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,055 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
organic::settings_last_updated
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Organic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.001.61 ▲0.0038.45 ▼4.75
Dashboard /wp-admin2,199 ▲195.62 ▲0.0091.13 ▼8.1541.64 ▼2.21
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.1339.16 ▼0.3335.95 ▲1.83
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▼0.22666.86 ▼15.0958.09 ▲6.33
Media Library /wp-admin/upload.php1,401 ▲14.27 ▲0.0594.43 ▼6.0441.21 ▼4.03
Organic Settings /wp-admin/options-general.php?page=organic/Organic/AdminSettings.php1,1862.1226.0427.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • organic::settings_last_updated
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/organic/vendor/masterminds/html5/bin/entities.php
  • 573× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/organic/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/organic/vendor/php-http/httplug/.php-cs-fixer.dist.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Jean85\\Exception\\VersionMissingExceptionInterface' not found in wp-content/plugins/organic/vendor/jean85/pretty-package-versions/src/Exception/ProvidedPackageException.php:7
    • > PHP Fatal error
      Trait 'FluentDOM\\DOM\ode\onDocumentTypeChildNode\\Implementation' not found in wp-content/plugins/organic/vendor/fluentdom/fluentdom/src/FluentDOM/DOM/Node/NonDocumentTypeChildNode/Properties.php on line 14
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\WebDriver\\WebDriver' not found in wp-content/plugins/organic/vendor/php-webdriver/webdriver/lib/Support/Events/EventFiringWebDriver.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Amp\\Http\\Client\\EventListener' not found in wp-content/plugins/organic/vendor/symfony/http-client/Internal/AmpListener.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamFactoryInterface' not found in wp-content/plugins/organic/vendor/http-interop/http-factory-guzzle/src/StreamFactory.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileFactoryInterface' not found in wp-content/plugins/organic/vendor/http-interop/http-factory-guzzle/src/UploadedFileFactory.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/organic/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php:51
    • > PHP Fatal error
      Uncaught Error: Interface 'FluentDOM\\Appendable' not found in wp-content/plugins/organic/vendor/fluentdom/fluentdom/src/FluentDOM/Creator/Node.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: ads affiliate organic platform publishing

organic/organic.php Passed 13 tests

This is the main PHP file of "Organic" version 1.15.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Ads, Analytics & Affiliate Management

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin70,651 lines of code in 1,005 files:
LanguageFilesBlank linesComment linesLines of code
PHP98613,83733,43567,245
JSON7003,187
JavaScript3363155
XML30039
YAML38322
CSS3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.45
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces163
Interfaces135
Traits38
Classes774
▷ Abstract classes384.91%
▷ Concrete classes73695.09%
▷ Final classes22330.30%
Methods4,792
▷ Static methods55211.52%
▷ Public methods4,05984.70%
▷ Protected methods2194.57%
▷ Private methods51410.73%
Functions544
▷ Named functions17031.25%
▷ Anonymous functions37468.75%
Constants728
▷ Global constants395.36%
▷ Class constants68994.64%
▷ Public constants61288.82%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin