84% beautimour-kit

Code Review | Beautimour Kit

WordPress plugin Beautimour Kit scored84%from 54 tests.

About plugin

  • Plugin page: beautimour-kit
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Feb 18, 2019
  • Number of updates: 5
  • Update frequency: every 55.6 days
  • Top authors: beautimour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Beautimour Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.32 ▲4.33
Dashboard /wp-admin3.38 ▲0.0450.78 ▼15.25
Posts /wp-admin/edit.php3.50 ▲0.1451.56 ▼0.61
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.00 ▼15.48
Media Library /wp-admin/upload.php3.31 ▲0.0737.56 ▲1.94

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Beautimour Kit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.51 ▼0.7510.19 ▲8.5642.89 ▲3.26
Dashboard /wp-admin2,198 ▲245.65 ▼0.0184.48 ▼12.0138.63 ▼2.93
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0334.69 ▼4.8234.33 ▼4.25
Add New Post /wp-admin/post-new.php1,533 ▲523.36 ▲0.26670.19 ▼29.5458.99 ▲4.25
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.01101.27 ▼7.1843.44 ▼2.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/admin/customizer/pinterest.php:31
    • > PHP Warning
      require_once(BK_ADMINcustomizer/cookie.php): failed to open stream: No such file or directory in wp-content/plugins/beautimour-kit/admin/customizer.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/inc/cookie.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beautimour-kit/inc/signature.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/inc/sticky-sidebar.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beautimour-kit/inc/author-profile-social.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/inc/pinterest.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/admin/customizer/sidebar.php:47
    • > PHP Fatal error
      require_once(): Failed opening required 'BK_ADMINcustomizer/cookie.php' (include_path='.:/usr/share/php') in wp-content/plugins/beautimour-kit/admin/customizer.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautimour-kit/admin/customizer/cookie.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: pinterest, cookie, layouts, social, sticky...

beautimour-kit/beautimour-kit.php Passed 13 tests

The primary PHP file in "Beautimour Kit" version 1.0.2 is used by WordPress to initiate all plugin functionality
55 characters long description:
Adds extra features to All Beautimour WordPress themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected753 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript410268404
PHP1397335319
CSS14330

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin