78% podro-wp

Code Review | WP Podro

WordPress plugin WP Podro scored78%from 54 tests.

About plugin

  • Plugin page: podro-wp
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 18
  • Update frequency: every 12.0 days
  • Top authors: khorshidlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,453 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.01MB] [CPU: ▼7.46ms] Passed 4 tests

A check of server-side resources used by WP Podro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.07 ▼10.72
Dashboard /wp-admin3.31 ▲0.0149.74 ▼1.86
Posts /wp-admin/edit.php3.36 ▲0.0149.72 ▼2.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.92 ▼14.85
Media Library /wp-admin/upload.php3.24 ▲0.0136.01 ▲0.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Podro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.27 ▼0.011.62 ▼0.1843.10 ▼1.57
Dashboard /wp-admin2,205 ▲255.64 ▼0.0388.28 ▼11.0450.71 ▲5.02
Posts /wp-admin/edit.php2,113 ▲132.03 ▲0.0134.93 ▼10.1941.92 ▲1.96
Add New Post /wp-admin/post-new.php1,534 ▼123.29 ▲5.15674.63 ▲46.5962.91 ▼3.47
Media Library /wp-admin/upload.php1,416 ▲164.18 ▼0.02102.09 ▼4.1355.00 ▲10.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/podro-wp/wp-podro.php
  • 110× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/podro-wp/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: shipping, woocommerce, podro

podro-wp/wp-podro.php 85% from 13 tests

The primary PHP file in "WP Podro" version 1.4.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("podro-wp.php" instead of "wp-podro.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 463 characters long)

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
Success! There were no dangerous files found in this plugin6,447 lines of code in 159 files:
LanguageFilesBlank linesComment linesLines of code
PHP1391,1101,2825,020
JavaScript823624879
JSON640403
YAML3313123
Markdown113020
CSS1001
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.65
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes125
▷ Abstract classes10.80%
▷ Concrete classes12499.20%
▷ Final classes00.00%
Methods256
▷ Static methods5119.92%
▷ Public methods19576.17%
▷ Protected methods3413.28%
▷ Private methods2710.55%
Functions29
▷ Named functions310.34%
▷ Anonymous functions2689.66%
Constants28
▷ Global constants932.14%
▷ Class constants1967.86%
▷ Public constants19100.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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mahexLogo.png32.28KB10.67KB▼ 66.93%
assets/images/linkLogo.png1.71KB0.77KB▼ 55.07%
assets/images/podro.png1.25KB1.49KB0.00%
assets/images/postLogo.png6.53KB3.87KB▼ 40.74%
assets/images/pishropostLogo.png41.53KB19.33KB▼ 53.47%