78% practicepulse-tools

Code Review | PracticePulse Tools

WordPress plugin PracticePulse Tools scored78%from 54 tests.

About plugin

  • Plugin page: practicepulse-tools
  • Plugin version: 1.0.26
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: May 23, 2023
  • Number of updates: 33
  • Update frequency: every 36.4 days
  • Top authors: yyilmaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,191 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.27ms] Passed 4 tests

Analyzing server-side resources used by PracticePulse Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.18 ▲5.87
Dashboard /wp-admin3.41 ▲0.111,181.92 ▲1,124.06
Posts /wp-admin/edit.php3.38 ▲0.0350.07 ▼6.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.32 ▼6.35
Media Library /wp-admin/upload.php3.26 ▲0.0339.50 ▲1.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for PracticePulse Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲9213.65 ▼0.945.12 ▲2.9044.24 ▲1.48
Dashboard /wp-admin2,290 ▲904.90 ▼0.91140.86 ▲33.6046.09 ▼0.26
Posts /wp-admin/edit.php2,107 ▲42.03 ▼0.0341.10 ▼1.0037.49 ▼1.73
Add New Post /wp-admin/post-new.php1,533 ▲723.58 ▲6.05589.69 ▼117.9752.91 ▼22.78
Media Library /wp-admin/upload.php1,401 ▲14.29 ▼0.08104.35 ▼14.0243.99 ▼6.45

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/practicepulse-tools/admin/partials/practicepulse-tools-admin-display.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/practicepulse-tools/admin/partials/practicepulse-tools-admin-dashboard-widget.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/practicepulse-tools/public/partials/practicepulse-tools-public-modal.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/practicepulse-tools/public/partials/practicepulse-tools-public-accordion.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/practicepulse-tools/public/partials/practicepulse-tools-public-articles.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === practicepulse-tools === )
You can look at the official readme.txt

practicepulse-tools/practicepulse-tools.php Passed 13 tests

The main PHP script in "PracticePulse Tools" version 1.0.26 is automatically included on every request by WordPress
63 characters long description:
Provides internal operations for PracticePulse client websites.

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 plugin680 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP15248650386
Sass37340246
JavaScript4446146
CSS2002

PHP code Passed 2 tests

Analyzing 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.19
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/logo-circle-white.png7.23KB7.00KB▼ 3.13%
admin/assets/logo-whole-black.png4.21KB4.21KB0.02%