10% posadzimy-pl

Code Review | Posadzimy.pl

WordPress plugin Posadzimy.pl scored10%from 54 tests.

About plugin

  • Plugin page: posadzimy-pl
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Sep 1, 2023
  • Number of updates: 15
  • Update frequency: every 33.8 days
  • Top authors: posadzimy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,106 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/posadzimy-pl/posadzimy.php+34
    require_once(wp-content/plugins/posadzimy-pl../../woocommerce/includes/admin/settings/class-wc-settings-page.php): failed to open stream: No such file or directory

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

This is a short check of server-side resources used by Posadzimy.pl
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.35 ▼4.28
Dashboard /wp-admin3.31 ▲0.0046.76 ▲1.24
Posts /wp-admin/edit.php3.36 ▲0.0043.23 ▼5.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.46 ▼5.16
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▼1.55

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Posadzimy.pl: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.60 ▼0.0838.75 ▼8.55
Dashboard /wp-admin2,200 ▲125.84 ▼0.21105.16 ▼2.1839.09 ▼1.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0140.76 ▲1.2633.66 ▼4.49
Add New Post /wp-admin/post-new.php1,520 ▼823.01 ▲4.85670.95 ▲6.8649.25 ▼1.18
Media Library /wp-admin/upload.php1,391 ▲94.17 ▼0.0897.28 ▼15.0741.51 ▼7.40

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/posadzimy-pl/src/Backend/Settings.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Inspire_Labs\\Posadzimy\\Api_Client\\Request_Value_Object_Interface' not found in wp-content/plugins/posadzimy-pl/src/Api_Client/Request_Post_Value_Object.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Inspire_Labs\\Posadzimy\\Api_Client\\Request_Value_Object_Interface' not found in wp-content/plugins/posadzimy-pl/src/Api_Client/Request_Get_Value_Object.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: posadzimy, eco, woocommerce, save planet

posadzimy-pl/posadzimy.php 77% from 13 tests

"Posadzimy.pl" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("posadzimy-pl.php" instead of "posadzimy.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,428 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP569079132,794
JavaScript365311,416
PO File1520118
Markdown133050
CSS24028
JSON21022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.04
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces1
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes00.00%
Methods183
▷ Static methods4424.04%
▷ Public methods14478.69%
▷ Protected methods00.00%
▷ Private methods3921.31%
Functions23
▷ Named functions14.35%
▷ Anonymous functions2295.65%
Constants37
▷ Global constants38.11%
▷ Class constants3491.89%
▷ Public constants2676.47%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin