78% basticom-framework

Code Review | Basticom Framework

WordPress plugin Basticom Framework scored 78% from 54 tests.

About plugin

  • Plugin page: basticom-framework
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.9.6
  • WordPress version: 5.8.1
  • First release: Oct 8, 2016
  • Latest release: Jul 5, 2018
  • Number of updates: 28
  • Update frequency: every 22.7 days
  • Top authors: basticom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.76MB] [CPU: ▼167.98ms] Passed 4 tests

An overview of server-side resources used by Basticom Framework
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.1652.63 ▲18.22
Dashboard /wp-admin2.88 ▼0.1729.17 ▼17.26
Posts /wp-admin/edit.php2.89 ▼0.2231.72 ▼18.50
Add New Post /wp-admin/post-new.php2.88 ▼2.5533.62 ▼632.03
Media Library /wp-admin/upload.php2.89 ▼0.1230.15 ▼4.13
Basticom /wp-admin/options-general.php?page=basticom-framework-api/admin/basticom-framework-admin.php2.8926.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basticom Framework
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,848 ▲27617.14 ▲1.6024.08 ▲14.3847.06 ▼6.29
Dashboard /wp-admin3,024 ▲936.63 ▲0.56158.37 ▲5.71121.00 ▼6.52
Posts /wp-admin/edit.php2,796 ▲573.02 ▲0.3296.98 ▲28.43115.12 ▲23.16
Add New Post /wp-admin/post-new.php1,728 ▲4518.69 ▼0.01386.54 ▼17.87130.61 ▲20.24
Media Library /wp-admin/upload.php1,861 ▲545.43 ▲0.43147.34 ▼12.09123.15 ▼0.17
Basticom /wp-admin/options-general.php?page=basticom-framework-api/admin/basticom-framework-admin.php3,2443.19124.8697.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=basticom-framework-api/admin/basticom-framework-admin.php
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-cleanadminbar.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-footertext.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-widgets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-serverstats.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-emojis.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-imagecompression.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-googleapikey.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-adddefer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bstcmfw_write_log() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-posts.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/basticom-framework/admin/modules/bstcmfw-atom.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === basticom-framework === )
You can take inspiration from this readme.txt

basticom-framework/basticom-framework.php Passed 13 tests

This is the main PHP file of "Basticom Framework" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
19 characters long description:
WordPress framework

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
Success! There were no dangerous files found in this plugin2,102 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP394211821,567
PO File18386190
JavaScript34211183
CSS2260152
HTML19010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.80
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods2448.98%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions65
▷ Named functions4569.23%
▷ Anonymous functions2030.77%
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
There are no PNG files in this plugin