84% stop-the-bokettch

Code Review | Stop the Bokettch

WordPress plugin Stop the Bokettch scored84%from 54 tests.

About plugin

  • Plugin page: stop-the-bokettch
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 26, 2013
  • Latest release: Jun 4, 2018
  • Number of updates: 18
  • Update frequency: every 100.2 days
  • Top authors: jim912 (94.44%)Otto42 (11.11%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /9,473 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Stop the Bokettch
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.89 ▼0.82
Dashboard /wp-admin3.32 ▲0.0143.92 ▼6.30
Posts /wp-admin/edit.php3.37 ▲0.0146.61 ▼0.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.09 ▼36.46
Media Library /wp-admin/upload.php3.24 ▲0.0132.67 ▼0.78

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Stop the Bokettch
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.32 ▼1.331.92 ▼0.3443.60 ▼4.39
Dashboard /wp-admin2,206 ▲185.04 ▼0.7999.01 ▼15.5740.54 ▼6.67
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0039.79 ▲2.5334.03 ▼0.73
Add New Post /wp-admin/post-new.php1,542 ▲2818.04 ▲0.58595.42 ▼70.6855.96 ▲0.43
Media Library /wp-admin/upload.php1,379 ▼64.21 ▼0.0799.87 ▼5.2945.25 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/stop-the-bokettch/stop-the-bokettch.php:24

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: admin, search engine

stop-the-bokettch/stop-the-bokettch.php 92% from 13 tests

This is the main PHP file of "Stop the Bokettch" version 0.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected908 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG103487
CSS11513166
PHP21919118
Markdown144080
PO File16530
JavaScript14027

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default.png1.47KB0.38KB▼ 74.47%