84% padma-toolkits

Code Review | Padma Toolkits

WordPress plugin Padma Toolkits scored84%from 54 tests.

About plugin

  • Plugin page: padma-toolkits
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Mar 3, 2022
  • Latest release: Mar 3, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ashathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.70ms] Passed 4 tests

This is a short check of server-side resources used by Padma Toolkits
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.68 ▼3.78
Dashboard /wp-admin3.31 ▼0.0343.82 ▼17.00
Posts /wp-admin/edit.php3.36 ▲0.0046.64 ▼1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.26 ▼27.17
Media Library /wp-admin/upload.php3.23 ▲0.0032.51 ▼2.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Padma Toolkits
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.41 ▼0.971.54 ▼0.0940.34 ▼7.12
Dashboard /wp-admin2,227 ▲385.84 ▲0.92106.00 ▼14.5543.43 ▼3.17
Posts /wp-admin/edit.php2,106 ▲142.02 ▲0.0540.43 ▲4.8238.53 ▲5.17
Add New Post /wp-admin/post-new.php1,527 ▲617.79 ▼5.17683.13 ▲11.2965.14 ▲14.47
Media Library /wp-admin/upload.php1,400 ▲124.21 ▲0.0398.12 ▼17.5944.27 ▼1.50

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/padma-toolkits/widgets/padma-title.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/padma-toolkits/widgets/padma-blog-style.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: padma-toolkits, padma, toolkits, padma-blog, addons

padma-toolkits/padma-toolkits.php Passed 13 tests

The primary PHP file in "Padma Toolkits" version 1.0.1 is used by WordPress to initiate all plugin functionality
63 characters long description:
This plugin will enable blog Features in padma wordpress theme.

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
There were no executable files found in this plugin5,410 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS571372,414
PHP37611325

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods23
▷ Static methods14.35%
▷ Public methods1982.61%
▷ Protected methods417.39%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
widgets/img/line.png0.58KB0.83KB0.00%