74% stop-confusion

Code Review | Stop Confusion

WordPress plugin Stop Confusion scored74%from 54 tests.

About plugin

  • Plugin page: stop-confusion
  • Plugin version: 0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 13, 2022
  • Latest release: Apr 14, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: idandev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /189 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.28ms] Passed 4 tests

A check of server-side resources used by Stop Confusion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.11 ▼3.51
Dashboard /wp-admin3.37 ▲0.0747.30 ▼2.62
Posts /wp-admin/edit.php3.48 ▲0.1346.98 ▲1.46
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.32 ▲5.79
Media Library /wp-admin/upload.php3.29 ▲0.0738.21 ▲6.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 3 new tables, 6 new options
New tables
wp_stop_confusion_security_alerts
wp_stop_confusion_last_check
wp_stop_confusion_theme_check
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Stop Confusion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲5613.23 ▼1.171.60 ▼0.2440.35 ▼6.70
Dashboard /wp-admin2,208 ▲204.85 ▼1.00109.39 ▲8.4441.90 ▼1.99
Posts /wp-admin/edit.php2,091 ▼12.03 ▲0.0238.57 ▲3.1833.58 ▲1.39
Add New Post /wp-admin/post-new.php1,525 ▼1223.13 ▼0.16588.24 ▼60.1355.12 ▲2.94
Media Library /wp-admin/upload.php1,390 ▼14.20 ▼0.0094.29 ▼6.4439.22 ▼3.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_stop_confusion_security_alerts
    • wp_stop_confusion_last_check
    • wp_stop_confusion_theme_check
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/stop-confusion/admin/view.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stop-confusion/stop-confusion.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: theme-check, security

stop-confusion/stop-confusion.php 92% from 13 tests

The main file in "Stop Confusion" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected564 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57622406
JavaScript13018146
CSS13012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2275.86%
▷ Protected methods00.00%
▷ Private methods724.14%
Functions15
▷ Named functions1173.33%
▷ Anonymous functions426.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected