68% wp-boyka

Code Review | WP Boyka

WordPress plugin WP Boyka scored 68% from 54 tests.

About plugin

  • Plugin page: wp-boyka
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: May 9, 2013
  • Latest release: May 10, 2013
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: drosophila (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,696 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.79MB] [CPU: ▼56.52ms] Passed 4 tests

This is a short check of server-side resources used by WP Boyka
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.265.36 ▼35.97
Dashboard /wp-admin2.22 ▼1.097.59 ▼42.23
Posts /wp-admin/edit.php2.22 ▼1.147.39 ▼43.19
Add New Post /wp-admin/post-new.php2.22 ▼3.676.37 ▼104.67
Media Library /wp-admin/upload.php2.22 ▼1.016.82 ▼28.33
Boyka /wp-admin/admin.php?page=boyka-preview-page2.225.91

Server storage [IO: ▲0.14MB] [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: 13 new files
Database: no new tables, 11 new options
New WordPress options
boyka_compress_on_upload
boyka_disable_preview
widget_theysaidso_widget
can_compress_scripts
boyka_compress_thumbnails
boyka_compression_level
theysaidso_admin_options
widget_recent-comments
db_upgraded
boyka_verbose_mode
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Boyka
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.44 ▼0.741.91 ▲0.1838.48 ▼1.74
Dashboard /wp-admin2,227 ▲424.88 ▼1.02112.15 ▲13.8937.40 ▼5.13
Posts /wp-admin/edit.php2,107 ▲182.23 ▲0.2343.45 ▲2.3334.96 ▼1.34
Add New Post /wp-admin/post-new.php1,545 ▲15322.90 ▲4.57644.07 ▲45.9850.63 ▲10.97
Media Library /wp-admin/upload.php1,406 ▲214.33 ▲0.1397.82 ▼2.1643.41 ▼1.28
Boyka /wp-admin/admin.php?page=boyka-preview-page6751.479.1218.32

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the boyka_common_jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • boyka_disable_preview
    • widget_recent-posts
    • can_compress_scripts
    • boyka_compress_thumbnails
    • widget_recent-comments
    • boyka_compress_on_upload
    • widget_theysaidso_widget
    • boyka_verbose_mode
    • boyka_compression_level
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=boyka-preview-page
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the boyka_common_jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-boyka/wp-boyka.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: Contributors not specified
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to wp-boyka_1.jpg), #2 (This screen shot description corresponds to wp-boyka_2.jpg), #3 (This screen shot description corresponds to wp-boyka_3.jpg), #4 (This screen shot description corresponds to wp-boyka_4.jpg), #5 (This screen shot description corresponds to wp-boyka_5.jpg)
The official readme.txt is a good inspiration

wp-boyka/wp-boyka.php 92% from 13 tests

The main PHP file in "WP Boyka" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin499 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP121971324
PO File2714158
JavaScript113217

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected