78% profiler-what-slowing-down

Code Review | Profiler - What Slowing Down Your WP

WordPress plugin Profiler - What Slowing Down Your WP scored78%from 54 tests.

About plugin

  • Plugin page: profiler-what-slo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Feb 11, 2023
  • Number of updates: 9
  • Update frequency: every 1.9 days
  • Top authors: switcorp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /2,946 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼14.53ms] Passed 4 tests

An overview of server-side resources used by Profiler - What Slowing Down Your WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.70 ▼5.86
Dashboard /wp-admin3.43 ▲0.0848.33 ▼22.08
Posts /wp-admin/edit.php3.52 ▲0.1749.51 ▼5.50
Add New Post /wp-admin/post-new.php6.14 ▲0.2584.96 ▼24.67
Media Library /wp-admin/upload.php3.37 ▲0.1436.02 ▼0.84
Profiler What Slowing Down /wp-admin/tools.php?page=profiler_what_slowing_down3.3239.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Profiler - What Slowing Down Your WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.46 ▼0.907.76 ▲5.8443.26 ▲1.35
Dashboard /wp-admin2,200 ▲205.61 ▲0.0191.89 ▼1.6141.09 ▼3.13
Posts /wp-admin/edit.php2,108 ▲82.01 ▲0.0242.08 ▲5.1636.19 ▼2.87
Add New Post /wp-admin/post-new.php1,533 ▲723.19 ▲0.06664.15 ▼45.8955.77 ▲4.20
Media Library /wp-admin/upload.php1,411 ▲114.20 ▼0.0194.73 ▼8.0846.74 ▲1.98
Profiler What Slowing Down /wp-admin/tools.php?page=profiler_what_slowing_down9342.0124.6133.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/profiler-what-slowing-down/admin/partials/which-plugin-slowing-down-admin-display.php
    • > /wp-content/plugins/profiler-what-slowing-down/public/partials/which-plugin-slowing-down-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/profiler-what-slowing-down/filters.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Example results) image not found
  • Plugin Name: Please specify the plugin name on the first line ( === profiler-what-slowing-down === )
The official readme.txt might help

profiler-what-slowing-down/profiler-what-slowing-down.php 92% from 13 tests

The primary PHP file in "Profiler - What Slowing Down Your WP" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin636 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15230552537
CSS2211093
JavaScript24546

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.18
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/run_test.png21.65KB12.71KB▼ 41.31%