84% is-there-a-problem

Code Review | Is there a problem

WordPress plugin Is there a problem scored84%from 54 tests.

About plugin

  • Plugin page: is-there-a-problem
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2022
  • Latest release: Sep 5, 2022
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: martindev92 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Is there a problem
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.57 ▼5.45
Dashboard /wp-admin3.31 ▲0.0048.36 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0049.22 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.92 ▼8.14
Media Library /wp-admin/upload.php3.23 ▲0.0035.79 ▼1.95

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Is there a problem
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.21 ▼0.431.86 ▼0.0241.71 ▼5.60
Dashboard /wp-admin2,195 ▲185.62 ▼0.0694.22 ▲0.9041.53 ▲0.12
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0240.26 ▲4.9035.47 ▼0.63
Add New Post /wp-admin/post-new.php1,526 ▼223.19 ▼0.02658.77 ▲27.0962.49 ▲5.17
Media Library /wp-admin/upload.php1,403 ▼04.13 ▼0.0497.16 ▼0.9543.92 ▲0.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_DebugBar_Panel' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/DebugBar/PluginPanel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_DebugBar_Panel' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/DebugBar/ThemePanel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Update' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Plugin/Update.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_InstalledPackage' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Theme/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Factory' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4/Factory.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_InstalledPackage' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Plugin/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Metadata' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Update.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Update' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Theme/Update.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Vcs_Api' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Vcs/BitBucketApi.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Theme_UpdateChecker' not found in wp-content/plugins/is-there-a-problem/plugin-update-checker-master/Puc/v4p13/Vcs/ThemeUpdateChecker.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (/assets/screenshot-1.png) image not found
Please take inspiration from this readme.txt

is-there-a-problem/is-there-a-problem.php Passed 13 tests

"Is there a problem" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
tell you if there are integration's problem with your website

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 plugin7,901 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,6292,3626,521
PO File24143146833
Markdown1720255
CSS3344172
JavaScript28677
JSON33043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity25.55
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes36
▷ Abstract classes513.89%
▷ Concrete classes3186.11%
▷ Final classes00.00%
Methods429
▷ Static methods276.29%
▷ Public methods25258.74%
▷ Protected methods16338.00%
▷ Private methods143.26%
Functions12
▷ Named functions758.33%
▷ Anonymous functions541.67%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.96MB with 0.72MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png978.05KB244.80KB▼ 74.97%